Project

General

Profile

Feature #22681 » 0014432-config_replace_single.patch

Administrator Admin, 2010-05-19 11:58

View differences:

t3lib/class.t3lib_tceforms.php (Arbeitskopie)
$PA['label'] = $this->sL($PA['label']);
// JavaScript code for event handlers:
$PA['fieldChangeFunc']=array();
$PA['fieldChangeFunc']['TBE_EDITOR_fieldChanged'] = "TBE_EDITOR.fieldChanged('".$table."','".$row['uid']."','".$field."','".$PA['itemFormElName']."');";
if ($PA['fieldConf']['config']['replace_single'] && intval($PA['fieldConf']['config']['maxitems'])==1) {
$PA['fieldChangeFunc']['TBE_EDITOR_fieldChanged'] =
"setFormValueManipulate('".$PA['itemFormElName']."','Remove'); ".
"TBE_EDITOR.fieldChanged('".$table."','".$row['uid']."','".$field."','".$PA['itemFormElName']."');";
} else {
$PA['fieldChangeFunc']['TBE_EDITOR_fieldChanged'] = "TBE_EDITOR.fieldChanged('".$table."','".$row['uid']."','".$field."','".$PA['itemFormElName']."');";
}
$PA['fieldChangeFunc']['alert']=$alertMsgOnChange;
// if this is the child of an inline type and it is the field creating the label
if ($this->inline->isInlineChildAndLabelField($table, $field)) {
(1-1/4)