Fixed js for proper error field focusing.
Details
Details
- Reviewers
alex - Commits
- rINP16647: Fixes INP-1778 - Auto-focus correct form control on error
Preparations
In the core\units\users\users_event_handler.php replace line
`$form_fields['Status']['default'] = STATUS_ACTIVE;
with:
$form_fields['Status']['default'] = null; $form_fields['Status']['required'] = 1;
Testing
- Go to User Management & Users section
- Press Add toolbar button
- Enter required Password, Re-enter Password and E-mail fields
- Press Save toolbar button
- Confirm that form shows error and is scrolled to the Status field
- Choose some value for Status field
- Input abc in the Modified date field
- Press Save toolbar button
- Confirm that form shows error and is scrolled to the Modified field
Diff Detail
Diff Detail
- Repository
- rINP In-Portal
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.