Merged in bugfix/HOR-2711 (pull request #5447)

HOR-2711

Approved-by: Julio Cesar Laura Avendaño
This commit is contained in:
dheeyi william
2017-02-21 19:47:08 +00:00
committed by Julio Cesar Laura Avendaño
2 changed files with 23 additions and 12 deletions

View File

@@ -28,6 +28,7 @@ class pmDynaform
private $dataSources = null;
private $databaseProviders = null;
private $propertiesToExclude = array();
public static $prefixs = array("@@", "@#", "@%", "@?", "@$", "@=");
public function __construct($fields = array())
{
@@ -194,7 +195,7 @@ class pmDynaform
$fn($json, $key, $value);
}
//set properties from trigger
$prefixs = array("@@", "@#", "@%", "@?", "@$", "@=");
$prefixs = self::$prefixs;
if (is_string($value) && in_array(substr($value, 0, 2), $prefixs)) {
$triggerValue = substr($value, 2);
if (isset($this->fields["APP_DATA"][$triggerValue])) {