Actions
Bug #15306
closedDisturbing auto-saving of form-fields
Start date:
2005-12-22
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
3.9-dev
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
If you edit a field in Typo3 3.9-dev (e.g. title of a page) the browser triggers an auto-saving when leaving the field. This does'nt only costs time for submitting and reloading the form for every edited field but also saves tryout-editing the user doesnt want to be saved without hitting the save-button. The user doesnt have any easy possibility to undo the changes.
The reason of this behaviour can be found in class t3lib_TCEforms
// Create a JavaScript code line which will ask the user to save/update the form due to changing the element. This is used for eg. "type" fields and others configured with "requestUpdate"
if (
(($TCA[$table]['ctrl']['type'] && !strcmp($field,$TCA[$table]['ctrl']['type'])) ||
($TCA[$table]['ctrl']['requestUpdate'] && t3lib_div::inList($TCA[$table]['ctrl']['requestUpdate'],$field)))
&& $GLOBALS['BE_USER']->jsConfirmation(1)) {
$alertMsgOnChange = 'if (confirm('.$GLOBALS['LANG']->JScharCode($this->getLL('m_onChangeAlert')).') && TBE_EDITOR_checkSubmit(-1)){ TBE_EDITOR_submitForm() };';
} else {
$alertMsgOnChange = 'if(TBE_EDITOR_checkSubmit(-1)){ TBE_EDITOR_submitForm();}';
}
In Typo3 3.8.1. the $alertMsgOnChange stays empty when hitting the else-statement.
(issue imported from #M2087)
Updated by Sebastian Kurfuerst almost 19 years ago
Hi,
thanks for this information - I will fix this.
Greets, Sebastian
Actions