-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fix "undefined" Tooltip Messages #3364
Conversation
18533b7
to
53a5048
Compare
Hi @aaronskiba I have a question about where the constant |
53a5048
to
001df4b
Compare
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><a href="http://Aarons-Mac-mini/users/password/edit?reset_password_token=XpnsHx1Hwkqgx1yZzRbq">Change my password</a></p>
|
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both code changes work as expected. This PR can be merged into the development
branch for the upcoming release.
Great to hear, thank you. Also, I finally added/committed a changelog entry for this one as well. :) |
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@33a6058
157a0ee
to
831d6d3
Compare
Fixes #3361
Changes proposed in this PR:
asterisk
was evaluating toundefined
. MovinggetConstant('REQUIRED_FIELD_TEXT')
inside of therequiredField.js
jQuery callback ensures thatREQUIRED_FIELD_TEXT
will be loaded beforegetConstant()
attempts to retrieve it.VALIDATION_MESSAGE_PASSWORDS_MATCH
was previously removed (here). However, this PR puts the constant back, becausegetConstant('VALIDATION_MESSAGE_PASSWORDS_MATCH')
is executed inpasswordHelper.js
.