Project

General

Profile

Actions

Bug #52904

closed

Namespace problem in JS when extending TCA evalfields

Added by Thomas Löffler over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend User Interface
Target version:
Start date:
2013-10-16
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
5.4
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

I extend the TCA evaluators for the be_users passwords with my extension and rewritten it with namespaces.
In the TCA field I have to set the complete namespace to get it work in PHP, but in JS it's broken now.

TCA:

$TCA['be_users']['columns']['password']['config']['eval'] = 'trim,required,SpoonerWeb\\BeSecurePw\\Evaluation\\PasswordEvaluator,tx_saltedpasswords_eval_be,password';

Result in JS (jsfunc.tbe_editor.js) when debugging "evallist" in line 640:
'trim,required,SpoonerWebBeSecurePwEvaluationPasswordEvaluator,tx_saltedpasswords_eval_be,password'

It breaks the complete JS functionality and no fields are filled with data from the database.

Either we have to change the integration for the eval fields or JS has to know how to handle the namespace in this case.

To reproduce it you can install the extension be_secure_pw (master) on:

https://github.com/spoonerWeb/be_secure_pw

Actions

Also available in: Atom PDF