CLONE - Array variable is not working in Mobile
This commit is contained in:
dheeyi william
2017-01-26 14:29:33 -04:00
parent 7423148b86
commit a3a1a0c2e9

View File

@@ -27,7 +27,7 @@ class pmDynaform
private $context = array();
private $dataSources = null;
private $databaseProviders = null;
private $propertyExclude = array();
private $propertiesToExclude = array();
public function __construct($fields = array())
{
@@ -38,7 +38,7 @@ class pmDynaform
$this->serverConf = &serverConf::getSingleton();
$this->isRTL = ($this->serverConf->isRtl(SYS_LANG)) ? 'true' : 'false';
$this->fields = $fields;
$this->propertyExclude = array('dataVariable');
$this->propertiesToExclude = array('dataVariable');
$this->getDynaform();
$this->getDynaforms();
$this->synchronizeSubDynaform();
@@ -198,11 +198,11 @@ class pmDynaform
if (is_string($value) && in_array(substr($value, 0, 2), $prefixs)) {
$triggerValue = substr($value, 2);
if (isset($this->fields["APP_DATA"][$triggerValue])) {
if (!in_array($key, $this->propertyExclude)) {
if (!in_array($key, $this->propertiesToExclude)) {
$json->{$key} = $this->fields["APP_DATA"][$triggerValue];
}
} else {
if (!in_array($key, $this->propertyExclude)) {
if (!in_array($key, $this->propertiesToExclude)) {
$json->{$key} = "";
}
}