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