Project

General

Profile

Actions

Bug #15306

closed

Disturbing auto-saving of form-fields

Added by old_heldenschreck over 18 years ago. Updated almost 18 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
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)

Actions #1

Updated by Sebastian Kurfuerst over 18 years ago

Hi,
thanks for this information - I will fix this.
Greets, Sebastian

Actions #2

Updated by Sebastian Kurfuerst over 18 years ago

fixed in CVS.

Actions

Also available in: Atom PDF