Uh oh!
There was an error while loading. Please reload this page.
Fix "undefined" Tooltip Messages - #3364
Conversation
18533b7 to
53a5048Comparegjacob24
commented
Mar 6, 2024
Hi @aaronskiba I have a question about where the constant |
53a5048 to
001df4bCompareaaronskiba
commented
Mar 25, 2024
Hi @gjacob24, Sorry for slow reply on this one. Also, this constant is a bit tricky to test locally, but here's one way.
<p>
Hello super_admin@example.com
</p><p>
Someone has requested a link to change your DMPRoadmap password. You can do this through the link below.
</p><p><ahref="http://Aarons-Mac-mini/users/password/edit?reset_password_token=XpnsHx1Hwkqgx1yZzRbq">Change my password</a></p>
|
gjacob24
commented
Mar 27, 2024
Hi @aaronskiba, thank you for explaining how to test the second one. Glad I asked because I noticed this page needed some polishing after the Bootstrap upgrade. |
gjacob24
left a comment
There was a problem hiding this comment.
Both code changes work as expected. This PR can be merged into the development branch for the upcoming release.
aaronskiba
commented
Mar 27, 2024
Great to hear, thank you. Also, I finally added/committed a changelog entry for this one as well. :) |
gjacob24
commented
Mar 28, 2024
Great, ok. I was going to suggest adding change log entries together in one commit for your PRs but I guess this is better. Thanks! |
Prior to this commit, requiredField.js was calling getConstant('REQUIRED_FIELD_TEXT') before the constant was loaded to constants.js. As a result, `asterisk` was evaluating to `undefined`.getConstant('VALIDATION_MESSAGE_PASSWORDS_MATCH') still exists in passwordhelper.js
Was previously removed here: portagenetwork@33a6058157a0ee to
831d6d3Compare
Fixes#3361
Changes proposed in this PR:
asteriskwas evaluating toundefined. MovinggetConstant('REQUIRED_FIELD_TEXT')inside of therequiredField.jsjQuery callback ensures thatREQUIRED_FIELD_TEXTwill be loaded beforegetConstant()attempts to retrieve it.VALIDATION_MESSAGE_PASSWORDS_MATCHwas previously removed (here). However, this PR puts the constant back, becausegetConstant('VALIDATION_MESSAGE_PASSWORDS_MATCH')is executed inpasswordHelper.js.