Actions
Bug #52904
closedNamespace problem in JS when extending TCA evalfields
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:
Actions