Merged in victorsl/processmaker/PM-1835 (pull request #1690)
PM-1835 "0016971: Triggers set to run before an output..." SOLVED
This commit is contained in:
@@ -130,7 +130,13 @@ if (isset( $oProcessFieds['PRO_DEBUG'] ) && $oProcessFieds['PRO_DEBUG']) {
|
||||
}
|
||||
|
||||
//cleaning debug variables
|
||||
if (! isset( $_GET['breakpoint'] )) {
|
||||
$flagExecuteBeforeTriggers = !isset($_GET["breakpoint"]);
|
||||
|
||||
if (isset($_GET["TYPE"]) && $_GET["TYPE"] == "OUTPUT_DOCUMENT" && isset($_GET["ACTION"]) && $_GET["ACTION"] != "GENERATE") {
|
||||
$flagExecuteBeforeTriggers = false;
|
||||
}
|
||||
|
||||
if ($flagExecuteBeforeTriggers) {
|
||||
if (isset( $_SESSION['TRIGGER_DEBUG']['info'] )) {
|
||||
unset( $_SESSION['TRIGGER_DEBUG']['info'] );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user