[Koha-bugs] [Bug 9040] uninitialized value in concatenation error in Opac-detail.tt

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 1 10:25:11 CET 2013


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

--- Comment #9 from Nuño López Ansótegui <nunyo at masmedios.com> ---
(In reply to comment #8)
> (In reply to comment #7)
> > (In reply to comment #6)
> > > In which cases do you see warning messages?
> > > 
> > > On opac-detail.pl, I just get some warnings about $ccode (Use of
> > > uninitialized value $ccode in exists at /home/koha/src/opac/opac-detail.pl
> > > line 534).
> > 
> > I meant that I have written the code like the other tests, for example as
> > the barcode code:
> > 
> > [% IF ( itemdata_datedue ) %]<td class="date_due">[% ITEM_RESULT.datedue |
> > $KohaDates %]</td>[% END %]
> > [% IF ( OPACShowBarcode ) %]<td class="barcode">[% ITEM_RESULT.barcode
> > %]</td>[% END %]
> > 
> > if $ccode get a warning, must also fix it.
> 
> Since I cannot reproduce, I cannot help you.
> You can keep your code but if the error is caused by the KohaDates plugin
> you have to check the existence of the variable before filtering it :
> 
> [% IF ( itemdata_datedue ) %]<td class="date_due">[% IF
> ITEM_RESULT.datedue%][% ITEM_RESULT.datedue | $KohaDates %][% END %]</td>[%
> END %]

Ok, but I check the existence of the variable in [% IF ( itemdata_datedue ) %]

I Would not checking the same variable two times?

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


More information about the Koha-bugs mailing list