On 22/02/11 13:22, Tomas Cohen Arazi wrote:
> I've filled a bug for better non existent record handling for biblios
> and authorities. I propose to use the same approach used for patrons.
> I hope I can submit a patch within a few hours.
>
> For authorities I plan to add to authorities/detail.pl a check like this:
>
> if ( defined $authtypecode ) {
> record show stuff
> } else {
> generate proper error message
> }
I'm assuming GetAuthority and GetBiblio are returning undef as the
returned $record so you should be able to test if ($record)
Catching these errors will be a major improvement, thanks
Colin
--
Colin Campbell
Chief Software Engineer,
PTFS Europe Limited
Content Management and Library Solutions
+44 (0) 845 557 5634 (phone)
+44 (0) 7759 633626 (mobile)
[email protected]
skype: colin_campbell2
http://www.ptfs-europe.com
_______________________________________________
Koha-devel mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/