Skip to content
Snippets Groups Projects

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

Merged Marc Egger requested to merge F7228ErrorIfMultipleRealFEExistWithSameName into master
1 file
+ 14
0
Compare changes
  • Side-by-side
  • Inline
@@ -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
Loading