Merge PR #787 into staging

This commit is contained in:
Llewellyn van der Merwe 2021-08-27 18:42:56 +02:00
commit bb1d4768b4
Signed by: Llewellyn
GPG Key ID: EFC0C720A240551C

View File

@ -4343,8 +4343,14 @@ class Interpretation extends Fields
. $this->setLine(__LINE__) . " Check if \$"
. $default['on_field']
. " is an array with values.";
$methods .= PHP_EOL . $this->_t(2) . "\$array = \$"
. $default['on_field'] . ";";
$methods .= PHP_EOL . $this->_t(2) . "\$array = ("
. $this->fileContentStatic[$this->hhh
. 'Component' . $this->hhh]
. "Helper::checkJson(\$"
. $default['on_field']
. ", true)) ? json_decode(\$"
. $default['on_field'] . ",true) : \$"
. $default['on_field'] . ";";
$methods .= PHP_EOL . $this->_t(2)
. "if (isset(\$array) && "
. $this->fileContentStatic[$this->hhh