[Koha-bugs] [Bug 21475] Error in the OPAC when viewing a record which has no biblio-level itemtype

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Oct 18 15:27:26 CEST 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21475

--- Comment #10 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
(In reply to Julian Maurice from comment #9)

> I think it's odd to return an empty string for what seems to be a boolean
> value. I can see that can_article_request and may_article_request do the
> same thing so it's consistent.
> But why not return simply 0 (as 1 is used for the true value) ? And why q{}
> instead of just '' ? Is there some kind of consensus about this that I'm not
> aware of ?
> (Note that this will not block QA, I'm just curious)

Empty string is in perl the default for false (not 0). q{} seems to be
preferred above ''. The Koha codebase contains all variations. Nothing
important.

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


More information about the Koha-bugs mailing list