[Koha-devel] Expected behaviour if itemtype does not exist
Katrin
katrin.fischer.83 at web.de
Fri Jul 14 09:37:42 CEST 2017
Hi Jonathan,
I am not sure if I understand correctly, but I think translating the
itemtype descriptions should be optional not mandatory, so not causing
errors if the itemtype otherwise is set up correctly (having a 'default'
description).
Hope that helps,
Katrin
On 12.07.2017 20:50, Jonathan Druart wrote:
> Hi devs,
>
> Since bug 17843 I get errors if the item type (items.itype or
> biblioitems.itemtype depending on the pref item_level_itypes) does not
> exist as an item type (table itemtypes, filled by Administration ›
> Item types administration).
> The error (Can't call method "translated_description" on an undefined
> value) appears because we call a method on an undefined value.
> As this is a configuration issue (right?) I think we should add an
> alert from the updatedatabase.pl <http://updatedatabase.pl> script,
> then a warning on the about page.
> Would that be enough or should we handle the problematic case anyway
> (i.e. call the method only if the item type exists in DB)?
>
> Cheers,
> Jonathan
>
>
> _______________________________________________
> Koha-devel mailing list
> Koha-devel at lists.koha-community.org
> 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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20170714/d53012b3/attachment.html>
More information about the Koha-devel
mailing list