Fixed gh-155 that is caused by the checkbox behavior in the subforms. Also adding view string to validation check in ajax model.

This commit is contained in:
2017-11-01 05:16:21 +02:00
parent 805398e1a1
commit f85925c933
301 changed files with 367 additions and 348 deletions

View File

@ -9318,6 +9318,7 @@ class Interpretation extends Fields
$input = array();
$valueArray = array();
$getModel = array();
$userCheck = array();
foreach ($this->customScriptBuilder[$target]['ajax_controller'] as $view)
{
foreach ($view as $task)
@ -9327,7 +9328,7 @@ class Interpretation extends Fields
$getModel[$task['task_name']] = PHP_EOL."\t\t\t\t\t\t\t\$result = \$this->getModel('ajax')->".$task['method_name']."([[[valueArray]]]);";
// see user check is needed
if (!isset($task['user_check']) || 1 == $task['user_check'])
if (isset($task['user_check']) && 1 == $task['user_check'])
{
// add it since this means it was not set, and in the old method we assumed it was inplace
// or it is set and 1 means we still want it inplace