BUG 10257: P.M. 2.0.46 Error al crear un trigger (PMFSendMessage) IMPROVEMENT

- All fields are required.
- was changed some fields a optional.
This commit is contained in:
Marco Antonio Nina
2013-01-03 11:01:16 -04:00
parent 6d6b981a5b
commit 7dfc160989
3 changed files with 14 additions and 13 deletions

View File

@@ -68,7 +68,7 @@ try {
$methodReturnLabelRequired = G::LoadTranslation ( "ID_REQUIRED_FIELD" );
$fieldRequired[] = 'TRI_ANSWER';
} else {
$methodReturnLabelRequired = $methodreturnA[1];
$methodReturnLabelRequired = G::LoadTranslation ( "ID_NOT_REQUIRED" );//$methodreturnA[1];
}
$methodReturnLabel .= "<br>" . trim( $methodReturnLabelRequired ) . " | " . trim($methodreturnA[0]);
} else {
@@ -118,7 +118,7 @@ try {
$sPMfunction = $sNameFun . " (";
$methodParametersOnlyNames = array ();
if (count ( $aParametersFun ) > 0) {
$template->newBlock ( 'paremetersTriggersGroup' );
$template->assign ( 'PARAMETERS_LABEL', G::LoadTranslation ( 'ID_PARAMETERS' ) );
@@ -153,7 +153,7 @@ try {
$fieldDescription = ($paramDescription!="")?$paramDescription . "<br>":"";
if ($paramDefaultValue != "") {
$fieldDescription .= $paramDefaultValue . " | " . $paramType;
$fieldDescription .= G::LoadTranslation ( "ID_NOT_REQUIRED" ) . " | " . $paramDefaultValue . " | " . $paramType;
} else {
$fieldDescription .= G::LoadTranslation ( "ID_REQUIRED_FIELD" ) . " | " . $paramType;
$fieldRequired[] = trim (str_replace ("$", "", $paramName));
@@ -163,6 +163,7 @@ try {
}
}
}
$template->gotoBlock ( '_ROOT' );
$template->assign ('FIELDS_REQUIRED', implode ( ",", $fieldRequired ));
$template->assign ( 'ALLFUNCTION', implode ( ",", $methodParametersOnlyNames ) );

View File

@@ -67,7 +67,7 @@ try {
$methodReturnLabelRequired = G::LoadTranslation ( "ID_REQUIRED_FIELD" );
$fieldRequired[] = 'TRI_ANSWER';
} else {
$methodReturnLabelRequired = $methodreturnA[1];
$methodReturnLabelRequired = G::LoadTranslation ( "ID_NOT_REQUIRED" );//$methodreturnA[1];
}
$methodReturnLabel .= "<br>" . trim( $methodReturnLabelRequired ) . " | " . trim($methodreturnA[0]);
} else {
@@ -157,7 +157,7 @@ try {
$template->assign ( 'ADD_TRI_VALUE', str_replace("'", "&#34;", $paramValue) );
if ($paramDefaultValue != "") {
$fieldDescription = $paramDescription . "<br>";
$fieldDescription .= $paramDefaultValue . " | " . $paramType;
$fieldDescription .= G::LoadTranslation ( "ID_NOT_REQUIRED" ) . " | " . $paramDefaultValue . " | " . $paramType;
} else {
$fieldDescription = "";
$fieldDescription .= G::LoadTranslation ( "ID_REQUIRED_FIELD" ) . " | " . $paramType;