column->getTable(); $lbl = $field->column->getLabel(); if (!isset($tosave[$tbl])) $tosave[$tbl] = []; $tosave[$tbl][$lbl] = $field->getParam('value'); } foreach ($tosave as $table => $data) { $access = AccessTable::getGlobalAccess($table); if (!$access instanceof AccessTableGlobal) continue; if (!$access->getSchema()->isEditable()) { msg('lookup save error: no permission for schema', -1); return false; } $validator = $access->getValidator($data); if ($validator->validate()) { $validator->saveData(); } } // set thank you message if (!$thanks) { $thanks = sprintf($this->getLang('bureaucracy_action_struct_lookup_thanks'), wl($ID)); } else { $thanks = hsc($thanks); } return $thanks; } }