LP#1778522 Precat item creation should be more intentional user/mccanna/lp1778522_intentional_precat_creation_signoff
authorDan Briem <dbriem@wlsmail.org>
Wed, 18 Nov 2020 21:50:06 +0000 (16:50 -0500)
committerTerran McCanna <tmccanna@georgialibraries.org>
Wed, 18 Nov 2020 23:02:20 +0000 (18:02 -0500)
commit0c2e5d7d77f5ce854c513d1f30105d7d6fc081b1
treeec4284fbb9ec5140c1c1dd1f856d0f06758ae327
parent457d75b79ba5e3bf941553cabf28437be161ee5e
LP#1778522 Precat item creation should be more intentional

Precat items can be created before all of the info is entered.
The dialog autofocuses the title field, so a double barcode scan
will populate the title field and createt the precat without
giving an opportunity to fill in the other fields.

This prevents form submission unless you click the Precat
Checkout button.

To test:
1. Try to check out a barcode that doesn't exist to any patron
2. On the precat dialog, enter a value into the title field
3. Note the precat is created
4. Apply patch
5. Repeat steps 1-3 and note the precat isn't created until
   the Precat Checkout button is clicked

Signed-off-by: Dan Briem <dbriem@wlsmail.org>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/templates/staff/circ/share/t_precat_dialog.tt2