Bug 27802

Summary: Set focus for cursor on first input field when adding a cash register
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: Fines and feesAssignee: Alex Buckley <alexbuckley>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: alexbuckley, lucas
Version: unspecifiedKeywords: Academy
Hardware: All   
OS: All   
GIT URL: Change sponsored?: Sponsored
Patch complexity: Trivial patch Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
22.11.00
Circulation function:
Bug Depends on:    
Bug Blocks: 31411    
Attachments: Bug 27802: Set cursor focus in first input when adding a cash register
Bug 27802: Set cursor focus in first input when adding a cash register
Bug 27802: Set cursor focus in first input when adding a cash register

Description Katrin Fischer 2021-02-26 08:20:58 UTC
When adding a new cash register, the focus is not on the first input field requiring an additional click.

To test:
- Turn on the UseCashRegisters system preference
- Go to administration > cash registers
- Click on 'new cash register'
- Verify you can't type into the 'Name' input field without clicking into it first
Comment 1 Alex Buckley 2022-08-16 00:44:25 UTC
Created attachment 139166 [details] [review]
Bug 27802: Set cursor focus in first input when adding a cash register

Test plan:
1. Visit Administration > Accounting > Cash registers and notice the
cursor is not focussed in the first input field (Name)

2. Apply patch

3. Refresh the new cash registers page and confirm your cursor is
focussed in the first input field (name)

Sponsored-by: Catalyst IT, New Zealand
Comment 2 Owen Leonard 2022-08-18 18:33:08 UTC
Created attachment 139413 [details] [review]
Bug 27802: Set cursor focus in first input when adding a cash register

Test plan:
1. Visit Administration > Accounting > Cash registers and notice the
cursor is not focussed in the first input field (Name)

2. Apply patch

3. Refresh the new cash registers page and confirm your cursor is
focussed in the first input field (name)

Sponsored-by: Catalyst IT, New Zealand

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Comment 3 Katrin Fischer 2022-08-18 19:36:40 UTC
Created attachment 139414 [details] [review]
Bug 27802: Set cursor focus in first input when adding a cash register

Test plan:
1. Visit Administration > Accounting > Cash registers and notice the
cursor is not focussed in the first input field (Name)

2. Apply patch

3. Refresh the new cash registers page and confirm your cursor is
focussed in the first input field (name)

Sponsored-by: Catalyst IT, New Zealand

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Comment 4 Tomás Cohen Arazi (tcohen) 2022-09-07 20:46:13 UTC
Pushed to master for 22.11.

Nice work everyone, thanks!
Comment 5 Lucas Gass (lukeg) 2022-10-31 19:45:51 UTC
Enhancement will not be included in the 22.05.x series