To reproduce: 1. Go to Administration -> MARC bibliographic frameworks 2. Click Actions next to a framework, view MARC structure 3. Edit multiple tags (at least 2) and check the Important checkbox. 4. Go to cataloguing and create a new record using the framework you just edited 5. Don't fill any of the important fields. Click Save to force the validation for the important tags 6. Notice that the error message shows that an important field isn't filled, but the tag number shown is repeated for each message. The 'Go to field' link goes to the right tag, but the tag number shown is incorrect. Note: we're aware of the weird HTML display, this is fixed by Bug 30159.
Created attachment 131367 [details] [review] Bug 30224: Show correct important field in cataloguing validation This patch fxes the cataloguing validation messages to show the correct tag, when the whole field is important (not just a subfield). Note: Look at Bug 30159 to fix the formatting of the validation popup. 1. Go to Administration -> MARC bibliographic frameworks 2. Click Actions next to a framework, view MARC structure 3. Edit multiple tags (at least 2) and check the Important checkbox. 4. Go to cataloguing and create a new record using the framework you just edited 5. Don't fill any of the important fields. Click Save to force the validation for the important tags 6. Notice that the error message shows that an important field isn't filled, but the tag number shown is repeated for each message. The 'Go to field' link goes to the right tag, but the tag number shown is incorrect. 7. Apply patch and refresh page 8. Click Save to force validation again. 9. Confirm the correct tag number is now showing for each error message. Sponsored-by: Education Services Australia SCIS
Created attachment 133551 [details] [review] Bug 30224: Show correct important field in cataloguing validation This patch fxes the cataloguing validation messages to show the correct tag, when the whole field is important (not just a subfield). Note: Look at Bug 30159 to fix the formatting of the validation popup. 1. Go to Administration -> MARC bibliographic frameworks 2. Click Actions next to a framework, view MARC structure 3. Edit multiple tags (at least 2) and check the Important checkbox. 4. Go to cataloguing and create a new record using the framework you just edited 5. Don't fill any of the important fields. Click Save to force the validation for the important tags 6. Notice that the error message shows that an important field isn't filled, but the tag number shown is repeated for each message. The 'Go to field' link goes to the right tag, but the tag number shown is incorrect. 7. Apply patch and refresh page 8. Click Save to force validation again. 9. Confirm the correct tag number is now showing for each error message. Sponsored-by: Education Services Australia SCIS Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com>
Created attachment 133677 [details] [review] Bug 30224: Show correct important field in cataloguing validation This patch fxes the cataloguing validation messages to show the correct tag, when the whole field is important (not just a subfield). Note: Look at Bug 30159 to fix the formatting of the validation popup. 1. Go to Administration -> MARC bibliographic frameworks 2. Click Actions next to a framework, view MARC structure 3. Edit multiple tags (at least 2) and check the Important checkbox. 4. Go to cataloguing and create a new record using the framework you just edited 5. Don't fill any of the important fields. Click Save to force the validation for the important tags 6. Notice that the error message shows that an important field isn't filled, but the tag number shown is repeated for each message. The 'Go to field' link goes to the right tag, but the tag number shown is incorrect. 7. Apply patch and refresh page 8. Click Save to force validation again. 9. Confirm the correct tag number is now showing for each error message. Sponsored-by: Education Services Australia SCIS Signed-off-by: Petro Vashchuk <stalkernoid@gmail.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Pushed to master for 22.05, thanks to everybody involved [U+1F984]
Pushed to 21.11.x for 21.11.06
Not backported to oldoldstable (21.05.x). Feel free to ask if it's needed.