http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=11084
Kyle M Hall <k...@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Signed Off --- Comment #25 from Kyle M Hall <k...@bywatersolutions.com> --- (In reply to Katrin Fischer from comment #23) > Hi Kyle, > > I did some tests with the new patches: > > Record has 1 item, is not checked out. > > -t -c > ERROR DELETING BIBLIO 24: Test mode enabled > > I was not sure if this would have been an error outside the test mode (not > being deleted) or if that just meant that it was not deleted because of the > test mode. Right now it's not possible to tell if a record is deletable in Koha without trying to delete it! There are simply no library functions to do so. The test mode will tell you what records and items it would attempt to delete, but is not meant to tell you if they would be deleted successfully. > > -t -i -c > ERROR DELETING ITEM 102: Test mode enabled > ERROR DELETING BIBLIO 24: Test mode enabled > > Ok, so both throw an error... so not sure: would those be deleted without -t? See above. > -c > ERROR DELETING BIBLIO 24: This Biblio has items attached, please delete them > first before deleting this biblio > > This one is good - why not display this in the test mode too? See above as well ; ) The errors come from DelBiblio, so the only way to know if the record can't be deleted is to try to delete it! > -c -i > C4::Context->userenv not defined! at /home/katrin/kohaclone/C4/Items.pm line > 2278. > > No messages, but I didn't set verbose. Item and record appear to have been > deleted - can you take a look at the error/warn? I've attached a followup to take care of this. userenv isn't defined for cli scripts, so we just need to check for it's existence before using it. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/