BUG 9548 "Agregar la posibilidad de copiar triggers" SOLVED
- New feature - Add the ability to copy triggers - Copy trigger option was added in DESIGNER>TRIGGERS * Available from version 2.0.46
This commit is contained in:
30
workflow/engine/methods/triggers/triggerCopy.php
Normal file
30
workflow/engine/methods/triggers/triggerCopy.php
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
if (($RBAC_Response = $RBAC->userCanAccess("PM_FACTORY")) != 1) {
|
||||
return $RBAC_Response;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
require_once ("classes/model/Triggers.php");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$arrayField = array();
|
||||
$arrayField["LANG"] = SYS_LANG;
|
||||
$arrayField["PRO_UID"] = $_GET["PRO_UID"];
|
||||
$arrayField["TRI_TYPE"] = "SCRIPT";
|
||||
|
||||
if (isset($_GET["TRI_UID"]) && !empty($_GET["TRI_UID"])) {
|
||||
$oTrigger = new Triggers();
|
||||
$arrayField = $oTrigger->load($_GET["TRI_UID"]);
|
||||
}
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent("xmlform", "xmlform", "triggers/triggerCopy", "", $arrayField, "../triggers/triggers_Save");
|
||||
|
||||
G::RenderPage("publish", "raw");
|
||||
|
||||
Reference in New Issue
Block a user