Bug 31922 - Check alert for important fields is still a JavaScript message
Summary: Check alert for important fields is still a JavaScript message
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Cataloging (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-10-21 17:46 UTC by Caroline Cyr La Rose
Modified: 2022-10-24 20:14 UTC (History)
1 user (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Caroline Cyr La Rose 2022-10-21 17:46:53 UTC
Bug 28694 changed the alert message for missing mandatory fields to an in-page alert rather than a javascript pop up alert.

However, if you're only missing important fields, this pop-up still shows up, in addition to the in-page alert.

To test :
(Note: my test plan is written for MARC21 with the default default framework, i.e. the default framework as it comes by default with Koha)
1. Make 020$a 'Important'
1.1. Go to Administration > MARC bibliographic framework
1.2. Click 'Actions' next to the default framework and choose the 'MARC structure' option
1.3. Search for 020
1.4. Click 'Actions' next to the 020 field and choose 'Edit subfields'
1.5. Click the 'a' tab
1.6. Check the 'Important' box
1.7. Click 'Save changes'
2. Create a new record, but only fill out the mandatory fields, not the important field
2.1. Go to Cataloging
2.2. Click 'New record'
2.3. Fill out the mandatory fields, but not the important field
     - 000
     - 003
     - 005
     - 008
     - 040$c
     - 245$a
     - 942$c
2.4. Click 'Save'
--> There is a javascript pop-up informing you that you missed some important fields (this should not be here)
2.5. Wait a couple of seconds
--> The in-page alert appears (this is OK)
2.6. Click 'OK' in the pop-up
--> You are taken to the item form, without being able to add a value in the important field (this is the normal behaviour I think, that you're not able to do anything about the important field)