Project

General

Profile

Actions

Bug #14706

closed

$BE_USER->uc['noOnChangeAlertInTypeFields'] don't work

Added by old_jwitt over 19 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2005-04-27
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
3.7.0
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

class.t3lib_tceforms.diff (1.24 KB) class.t3lib_tceforms.diff Administrator Admin, 2005-04-27 15:41

Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Feature #14735: Disable all nag screensClosedSebastian Kurfuerst2005-05-15

Actions
Actions

Also available in: Atom PDF