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
Updated by Sebastian Kurfuerst over 19 years ago
Hi, if I understood you correctly, you modified the core for making that function to work. Could you please supply a diff in unified diff format? That would be of great help, thanks! - Sebastian
Updated by old_jwitt over 19 years ago
This is the diff. Its my first diff and I made it with 'diff -u'. I hope thats right.
Jens
Updated by Sebastian Kurfuerst over 19 years ago
Thanks for the diff :) - Sebastian