[Koha-bugs] [Bug 9272] Plack goes into paroxysms of horror when faced with deleting an authorized value

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Dec 12 14:43:28 CET 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9272

--- Comment #1 from Jared Camins-Esakov <jcamins at cpbibliography.com> ---
Created attachment 14038
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=14038&action=edit
Bug 9272: Eliminate error when deleting authorized value

Prior to this patch, when DEBUG was turned on, any attempt to delete
an authorized value from the staff client interface resulted in a DBD
error:
  DBD::mysql::st execute failed: Unknown column 'id' in 'where clause' at
  /home/jcamins/kohaclone/admin/authorised_values.pl line 228.
   at /home/jcamins/kohaclone/admin/authorised_values.pl line 300

This patch corrects a column name so that the error won't occur.

To test:
1) Set the environment variable DEBUG to true for your Koha VirtualHost
   with "SetEnv DEBUG 1"
2) Reload Apache
3) Try to delete an authorized value. Note you get an error even though
   the authorized value is deleted.
4) Apply patch.
5) Repeat step 3, noticing that this time there is no error.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list