Commit 7d0edeb5 authored by Carsten  Rose's avatar Carsten Rose
Browse files

formEditor.sql: Added ':S0' to make FormEditor more robust - no error message...

formEditor.sql: Added ':S0' to make FormEditor more robust - no error message in case formId can't be resolved, but still wrong behaviour.
Constants.php: Prepend '_' to SIP_MAKE_URLPARAM_UNIQ
Evaluate.php: phpstorm shows that 'getDebug()' is not used anywhere - commented.
parent 6d6a10a9
......@@ -332,7 +332,7 @@ const SIP_MODE_ANSWER = '_modeAnswer'; // Mode how delete() will answer to clien
const SIP_FORM = CLIENT_FORM;
const SIP_TABLE = '_table'; // delete a record from 'table'
const SIP_URLPARAM = 'urlparam';
const SIP_MAKE_URLPARAM_UNIQ = 'makeUrlParamUniq'; // SIPs for 'new records' needs to be uniq per TAB! Therefore add a uniq parameter
const SIP_MAKE_URLPARAM_UNIQ = '_makeUrlParamUniq'; // SIPs for 'new records' needs to be uniq per TAB! Therefore add a uniq parameter
// FURTHER: all extracted params from 'urlparam
const VAR_RANDOM = 'random';
......
......@@ -211,7 +211,7 @@ class Evaluate {
/**
* @return string
*/
public function getDebug() {
return '<pre>' . implode("\n", $this->debugStack) . '</pre>';
}
// public function getDebug() {
// return '<pre>' . implode("\n", $this->debugStack) . '</pre>';
// }
}
\ No newline at end of file
......@@ -206,7 +206,7 @@ VALUES
''),
(2, 'formId', 'formId', 'readonly', 'text', 'all', 'native', 110, 0, 255, '', '', '', '', '', '', 100, '', 'no', '', '', '', ''),
(2, 'feIdContainer', 'Container', 'show', 'select', 'all', 'native', 120, 0, 0, '', '', '',
'{{!SELECT fe.id, CONCAT(fe.class, " / ", fe.label) FROM FormElement As fe WHERE fe.formId={{formId}} AND fe.class="container" ORDER BY fe.ord }}',
'{{!SELECT fe.id, CONCAT(fe.class, " / ", fe.label) FROM FormElement As fe WHERE fe.formId={{formId:S0}} AND fe.class="container" ORDER BY fe.ord }}',
'', 'emptyItemAtStart', 100, '', 'no', '', '', '', ''),
(2, 'enabled', 'Enabled', 'show', 'checkbox', 'all', 'native', 130, 0, 0, '', '', '', '', '', '', 100, '', 'no', '', '', '', ''),
(2, 'dynamicUpdate', 'Dynamic Update', 'show', 'checkbox', 'all', 'native', 135, 0, 0, 'On change, this element will be updated and trigger other.', '', '', '', '', '', 100, '', 'no', '3', '2', '7', ''),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment