Commit 4b25e376 authored by Carsten  Rose's avatar Carsten Rose
Browse files

Merge branch 'F7228ErrorIfMultipleRealFEExistWithSameName' into 'master'

sync #7228 F Show error if form element with same name and class already exists

See merge request !116
parents ce066ba3 e9a27d98
Pipeline #1129 passed with stage
in 1 minute and 46 seconds
......@@ -348,6 +348,20 @@ VALUES
(2, 'created', 'Created', 'readonly', 'text', 'all', 'native', 640, 0, 20, '', '', '', '', '', 104, '', 'no', '',
'', '', '', '', 'specialchar');
INSERT INTO `FormElement` (`id`, `formId`, `feIdContainer`, `dynamicUpdate`, `enabled`, `name`, `label`, `mode`,
`modeSql`, `class`, `type`, `subrecordOption`, `encode`, `checkType`, `checkPattern`,
`onChange`, `ord`, `tabindex`, `size`, `maxLength`, `bsLabelColumns`, `bsInputColumns`,
`bsNoteColumns`, `rowLabelInputNote`, `note`, `adminNote`, `tooltip`, `placeholder`, `value`,
`sql1`, `parameter`, `parameterLanguageA`, `parameterLanguageB`, `parameterLanguageC`,
`parameterLanguageD`, `clientJs`, `feGroup`, `deleted`)
VALUES
(NULL, '2', '0', 'no', 'yes', 'Check Name Conflict', '', 'show', '', 'action', 'beforeSave', '', 'specialchar', 'auto',
'', '', '650', '0', '', '', '', '', '', 'row,label,/label,input,/input,note,/note,/row', '', '', '', '', '', '',
'sqlValidate={{!SELECT fe.id FROM FormElement AS fe WHERE "{{class:F:alnumx}}" = fe.class AND fe.formId = {{formId:F}} AND fe.name = "{{name:F:alnumx}}" AND fe.id != {{id:R0}} }}\r\n\r\nexpectRecords=0\r\n\r\nmessageFail=There is already another {{class:F:alnumx}} form element whith name "{{name:F:alnumx}}".',
'', '', '', '', '', '', 'no')
# ----------------------------------------
# MailLog
......
Supports Markdown
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