- Issue created by @adriancid
- Assigned to annmarysruthy
- Merge request !11206Issue #3485903: password_confirm form element #title property is hardcoded → (Open) created by annmarysruthy
- 🇮🇳India annmarysruthy
Raised MR #3. Kindly review.
If #title is provided in the form element, pass1 does not get an extra title. If #title is not provided, it defaults to "Password" as before.
Creating a custom form with a password_confirm form element with #title will only display the provided title, not the default one. - 🇮🇳India annmarysruthy
@smustgrave if a custom form with password_confirm has title, then that title would be displayed. Inorder to avoid duplicates, here we are checking if $element['#title'] is empty. if $element['#title'] is empty, default title 'password' would be displayed. Else the title from custom form will be used.
Kindly let me know If there is a concern here - 🇮🇳India Sivaji_Ganesh_Jojodae Chennai
When
$element['#title']
is set,$element['#title']
should be used notNULL
.