Adds easy cloning option to key areas. #840

Merged
Llewellyn merged 10 commits from staging into master 2021-12-21 14:59:58 +00:00
1 changed files with 8 additions and 2 deletions
Showing only changes of commit c8dbf279fe - Show all commits

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