Bug #14706
$BE_USER->uc['noOnChangeAlertInTypeFields'] don't work
Status: | Closed | Start date: | 2005-04-27 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Sebastian Kurfuerst | % Done: | 0% |
|
Category: | - | Spent time: | - | |
Target version: | - | |||
TYPO3 Version: | 3.7.0 | Is Regression: | ||
PHP Version: | Sprint Focus: | |||
Complexity: |
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)
Related issues
History
#1 Updated by Sebastian Kurfuerst over 10 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
#2 Updated by old_jwitt over 10 years ago
This is the diff. Its my first diff and I made it with 'diff -u'. I hope thats right.
Jens
#3 Updated by Sebastian Kurfuerst over 10 years ago
Thanks for the diff :) - Sebastian
#4 Updated by Sebastian Kurfuerst almost 10 years ago
fixed with bug 1078