http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9040
--- Comment #9 from Nuño López Ansótegui <nu...@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. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/