Project

General

Profile

Actions

Bug #19421

closed

Setting password for a new BE user changes the field value to "undefined"

Added by Jo Hasenau over 15 years ago. Updated almost 14 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2008-10-06
Due date:
% Done:

0%

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

Description

While creating and/or editing BE users the value of the password field will always switch to "undefined" after leaving the focus of the input field.
This doesn't seem to change the real value which will be saved to the DB later on at all, but since you can only find out about it by logging in with the specific BE user's data, it's quite annoying.

TYPO3 4.2.2

(issue imported from #M9494)


Files

0009494.patch (1.16 KB) 0009494.patch Administrator Admin, 2008-10-07 18:36

Related issues 6 (0 open6 closed)

Related to TYPO3 Core - Bug #18855: Wrong JavaScript inclusion in t3lib_TCEformsClosedOliver Hader2008-05-26

Actions
Has duplicate TYPO3 Core - Bug #19429: Cannot enter double numbers in TCEforms anymoreClosedOliver Hader2008-10-07

Actions
Is duplicate of TYPO3 Core - Bug #19423: Edit in Rich Text Editor - Button doesn't work anymore in Web>PageClosedOliver Hader2008-10-06

Actions
Has duplicate TYPO3 Core - Bug #19436: BE/FE-User passwords can't be changed (undefined)ClosedIngo Renner2008-10-08

Actions
Has duplicate TYPO3 Core - Bug #19478: Editing BE user: Password field shows "undefined" instead of starsClosedMichael Stucki2008-10-17

Actions
Has duplicate TYPO3 Core - Bug #19546: Incorrect password field input value when editing Backend & Frontend usersClosedChristian Kuhn2008-10-31

Actions
Actions #1

Updated by Oliver Hader over 15 years ago

The reason for the bug is, that tbe_editor.js was loaded in the HEAD section of the HTML document - what isn't bad in general. However, some parts in the core define a "typoSetup" object and create an instance in the variable TS.

I removed tbe_editor.js from the HEAD section again - thus, it's going to override the typoSetup object. For this case it's how it was before - a better solution would require more changes and thus only for TYPO3 4.3.

Please test and give a short feedback. Thanks!

Actions #2

Updated by Dan Osipov over 15 years ago

I can confirm the bug, and can confirm that its annoying.

Actions #3

Updated by Frank Weindel over 15 years ago

typo3\alt_doc.php Lines 467 to 470:
function typoSetup () { //
this.uniqueID = "";
}
var TS = new typoSetup();

are overriding the typoSetup object that is defined in typo3\jsfunc.tbe_editor.js as:
function typoSetup () {
this.passwordDummy = '********';
this.decimalSign = '.';
}
var TS = new typoSetup();

Thus TS.passwordDummy is undefined when the script executes to hide the password field.

Actions #4

Updated by Oliver Hader over 15 years ago

Frank, exactly - that's why the jsfunc.tbe_editor.js file has to be loaded after that declaration.

Actions #5

Updated by Oliver Hader over 15 years ago

This problem must be solved in combination with issue #19423 - please look there for patches against Trunk and TYPO3 4.2.2

Actions

Also available in: Atom PDF