Issue Bug Closed

#15306Disturbing auto-saving of form-fields

old_heldenschreck 12/22/05, 23:12 updated 08/12/06, 14:22

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.