Project

General

Profile

Actions

Bug #14706

closed

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

Added by old_jwitt about 19 years ago. Updated almost 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 #1

Updated by Sebastian Kurfuerst about 19 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

Actions #2

Updated by old_jwitt about 19 years ago

This is the diff. Its my first diff and I made it with 'diff -u'. I hope thats right.
Jens

Actions #3

Updated by Sebastian Kurfuerst about 19 years ago

Thanks for the diff :) - Sebastian

Actions #4

Updated by Sebastian Kurfuerst over 18 years ago

fixed with bug 1078

Actions

Also available in: Atom PDF