PMCORE-4067

This commit is contained in:
Luciana Nuñez
2023-01-04 07:40:27 -04:00
parent bf6b82b768
commit 8d2f066d3e
2 changed files with 14 additions and 3 deletions

View File

@@ -97,7 +97,12 @@ try {
$oCriteria = $oProcessMap->getStepTriggersCriteria(-2, $_SESSION['TASK'], 'AFTER');
$iCantidad3 = StepTriggerPeer::doCount($oCriteria);
$oNode = $oTree->addChild('-1', '&nbsp;&nbsp;<span onclick="tree.expand(this.parentNode);" style="cursor: pointer;">[<b> ' . G::LoadTranslation('ID_ASSIGN_TASK') . ' </b>] ' . ' - ' . G::LoadTranslation('ID_TRIGGERS'). ' (<span id="TRIG_'.$aRow['STEP_UID'] . '">' . ($iCantidad1 + $iCantidad2 + $iCantidad3) . '</span>)' . '</span>', array('nodeType'=>'parent'));
$step_uid = "";
if (isset($aRow)) {
$step_uid = $aRow['STEP_UID'];
}
$oNode = $oTree->addChild('-1', '&nbsp;&nbsp;<span onclick="tree.expand(this.parentNode);" style="cursor: pointer;">[<b> ' . G::LoadTranslation('ID_ASSIGN_TASK') . ' </b>] ' . ' - ' . G::LoadTranslation('ID_TRIGGERS'). ' (<span id="TRIG_'. $step_uid . '">' . ($iCantidad1 + $iCantidad2 + $iCantidad3) . '</span>)' . '</span>', array('nodeType'=>'parent'));
$oNode->contracted = true;
$oAux1 = $oNode->addChild('before_node', '<span onclick="tree.expand(this.parentNode);showTriggers(\'-1\', \'BEFORE\');" style="cursor: pointer;">' . G::LoadTranslation('ID_BEFORE_ASSIGNMENT') . ' - ' . G::LoadTranslation('ID_TRIGGERS'). ' (<span id="TRIG_-1_BEFORE">'. $iCantidad1 .'</span>) </span>', array('nodeType'=>'parent'));
$oAux1->plus = "<span style='cursor:pointer;display:block;width:15;height:10px;' onclick='tree.expand(this.parentNode);showTriggers(\"-1\", \"BEFORE\");'></span>";

View File

@@ -42,7 +42,10 @@ try {
foreach ($triggerLibraryO as $keyLibrary => $libraryObj) {
$libraryName = $libraryObj->info["name"];
$libraryIcon = (isset($libraryObj->info["icon"]) && ($libraryObj->info["icon"] != "")) ? $libraryObj->info["icon"] : "/images/browse.gif";
$libraryDescription = "";
if (isset($libraryObj->info["description"])) {
$libraryDescription = trim(str_replace("*", "", implode(" ", $libraryObj->info["description"])));
}
$triggerCount = count($libraryObj->methods);
if ($triggerCount > 0) {
@@ -58,7 +61,10 @@ try {
foreach ($libraryObj->methods as $methodName => $methodObject) {
$methodName = $methodObject->info["name"];
$methodLabel = $methodObject->info["label"];
$methodDescription = "";
if (isset($libraryObj->info["description"])) {
$methodDescription = trim(str_replace("*", "", implode(" ", $methodObject->info["description"])));
}
$oAux1 = $oNode->addChild($keyLibrary . "-" . $methodName, "<table><tr><td nowrap=\"nowrap\"><span style=\"cursor: pointer;\"><a class=\"linkInBlue\" href=\"javascript:;\" onclick=\"currentPopupWindow.remove(); triggerNewWizard('$methodName' , '$keyLibrary'); return false;\">" . $methodLabel . " (" . $methodName . ")</a></span></td></tr><tr><td><i>" . $methodDescription . "</i><br></span></td></tr></table>", array("nodeType" => "child"));
}