https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37513
David Nind <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Text to go in the| |This enhancement to the release notes| |record sources feature | |(added in Koha 24.05) | |removes the 'Delete' action | |from the record sources | |table if there are | |bibliographic records that | |use the record source. | | | |Previously, if you tried to | |delete a record source that | |was in use, you would get | |an unhelpful error message | |"Something went wrong: | |Error: Something went | |wrong, check Koha logs for | |details.". CC| |[email protected] --- Comment #11 from David Nind <[email protected]> --- Testing notes (using KTD): 1. Add a record source using the staff interface: 1.1 Go to Administration > Catalog > Record sources > + New record source 1.2 Name the new record source TEST 2. Update a record so that it uses this new record source: 2.1 The record source ID is listed in the record sources table ID column 2.2 Update record 262 in the database: - koha-mysql kohadev - UPDATE biblio_metadata SET record_source_id=1 WHERE biblionumber=262; 3. Go to delete the record source - note that you CANNOT delete the record source and get an error message, as there are records associated with it: 3.1 From the record sources table, select the 'Delete' action for the TEST record source 3.2 You are prompted: Are you sure you want to delete this record source? TEST Yes, delete No, do not delete 3.3 Select 'Yes, delete' 3.4 You get an error message: "Something went wrong: Error: Something went wrong, check Koha logs for details." 4. Apply the patches. 5. Update the view components: yarn install 6. Restart everything: restart_all 7. Check that the new tests pass: prove t/db_dependent/Koha/RecordSource.t 8. Refresh the record sources page - note that there is now no 'Delete' action. 9. Update the bibliographic record you added the record source to so that it no longer has a record source: 9.1 koha-mysql kohadev 9.2 UPDATE biblio_metadata SET record_source_id=NULL WHERE biblionumber=262; 10. Refresh the record sources page 11. Note that: - there is now a 'Delete' action - you can now delete the record source - the result message is: Record source 'TEST' deleted -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
