Merged in bugfix/PMC-1386 (pull request #7134)

PMC-1386

Approved-by: Paula Quispe <paula.quispe@processmaker.com>
This commit is contained in:
Andrea Adamczyk
2019-11-28 19:18:25 +00:00
committed by Julio Cesar Laura Avendaño

View File

@@ -360,7 +360,7 @@ class Form extends XmlForm
//Execute just if a query was set, it should be not empty //Execute just if a query was set, it should be not empty
if (trim($query) == "") { if (trim($query) == "") {
continue; //if it is empty string skip it break; //if it is empty string skip it
} }
//We do the query to the external connection and we've got the label //We do the query to the external connection and we've got the label
@@ -438,7 +438,7 @@ class Form extends XmlForm
// execute just if a query was set, it should be not empty // execute just if a query was set, it should be not empty
if (trim( $query ) == '') { if (trim( $query ) == '') {
continue; //if it is empty string skip it break; //if it is empty string skip it
} }
//we do the query to the external connection and we've got the label //we do the query to the external connection and we've got the label
@@ -491,7 +491,7 @@ class Form extends XmlForm
//Execute just if a query was set, it should be not empty //Execute just if a query was set, it should be not empty
if (trim( $query ) == "") { if (trim( $query ) == "") {
//if it is empty string skip it //if it is empty string skip it
continue; break;
} }
$rs = $stmt->executeQuery( ResultSet::FETCHMODE_NUM ); $rs = $stmt->executeQuery( ResultSet::FETCHMODE_NUM );