Resolve warning from members/summary-print.pl:
"my" variable $itemtype masks earlier declaration in same scope
Test if find returns a Koha object in GetDescription.
Test if find returns a Koha object too in shelves.pl. While testing, I had
a crash on a biblioitem with itemtype NULL (bad record, but these things
tend to happen somehow.)
Can't call method "imageurl" on an undefined value at virtualshelves/shelves.pl line 253.
Same for opac/opac-shelves.pl.
Note: Did not add tests everywhere but generally, I have the impression that
we do not sufficiently test on the results of Koha::Object->find. Mostly we
just assume that it will find a record. Several reports include fixes to
resolve that wrong assumption.
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
|
||
|---|---|---|
| .. | ||
| AudioAlerts.pm | ||
| AuthorisedValues.pm | ||
| Biblio.pm | ||
| Borrowers.pm | ||
| Branches.pm | ||
| Cache.pm | ||
| Categories.pm | ||
| ColumnsSettings.pm | ||
| HtmlTags.pm | ||
| ItemTypes.pm | ||
| Koha.pm | ||
| KohaDates.pm | ||
| Price.pm | ||
| To.pm | ||