Bug #14706
closed$BE_USER->uc['noOnChangeAlertInTypeFields'] don't work
0%
Description
if I set this option, then the fields are not updated. But this make no sense. I hoped that only the Alert message don't appear.
I changed this in class.t3lib_tceforms.php. line 730 (function getSingleField):
if (
(($TCA[$table]['ctrl']['type'] && !strcmp($field,$TCA[$table]['ctrl']['type'])) ||
($TCA[$table]['ctrl']['requestUpdate'] && t3lib_div::inList($TCA[$table]['ctrl']['requestUpdate'],$field)))
) {
if(!$BE_USER->uc['noOnChangeAlertInTypeFields']){
$alertMsgOnChange = 'if confirm('.$GLOBALS['LANG']->JScharCode($this->getLL('m_onChangeAlert')).') && TBE_EDITOR_checkSubmit(-1)){ TBE_EDITOR_submitForm() };';
}else {
$alertMsgOnChange='TBE_EDITOR_submitForm()';
}
else {$alertMsgOnChange='';}
and it works how I think it have to do.
Jens
(issue imported from #M1040)
Files