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:
Victor Saisa Lopez
2012-11-07 16:59:48 -04:00
parent c8379820db
commit ba6c87b9f2
7 changed files with 300 additions and 87 deletions

View 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");