[Koha-bugs] [Bug 24001] Cannot edit card template
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Feb 11 17:21:08 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24001
Rinrada Wongsaichua <hlunlin93 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|NEW |RESOLVED
--- Comment #30 from Rinrada Wongsaichua <hlunlin93 at gmail.com> ---
(In reply to Jonathan Druart from comment #29)
> (In reply to Rinrada Wongsaichua from comment #28)
> > Error when saving Patron card Template:
> > Can't bless non-reference value at
> > /home/vagrant/kohaclone/C4/Creators/Profile.pm line 89
> >
> > Can be fixed by add this one line into
> > /usr/share/koha/intranet/cgi-bin/patroncards/edit-template.pl
> >
> > 52 $profile_list = get_all_profiles({ fields => [ qw( profile_id
> > printer_name paper_bin ) ], filters => {template_id => [ $template_id, '' ]}
> > } );
> > +++ push @$profile_list, {paper_bin => 'N/A', profile_id => 0,
> > printer_name => 'No Profile'};
>
> Can you please provide a patch?
Sorry I'm new here(In reply to Jonathan Druart from comment #29)
> (In reply to Rinrada Wongsaichua from comment #28)
> > Error when saving Patron card Template:
> > Can't bless non-reference value at
> > /home/vagrant/kohaclone/C4/Creators/Profile.pm line 89
> >
> > Can be fixed by add this one line into
> > /usr/share/koha/intranet/cgi-bin/patroncards/edit-template.pl
> >
> > 52 $profile_list = get_all_profiles({ fields => [ qw( profile_id
> > printer_name paper_bin ) ], filters => {template_id => [ $template_id, '' ]}
> > } );
> > +++ push @$profile_list, {paper_bin => 'N/A', profile_id => 0,
> > printer_name => 'No Profile'};
>
> Can you please provide a patch?
I'm sorry I'm new for this site, really don't know how to attach patch or
create one
Basically you just need to add this line into edit-template.pl then issue
resolved
You'll now able to save patron card template without any error
--- /usr/share/koha/intranet/cgi-bin/patroncards/edit-template.pl
on line 52 $profile_list = get_all_profiles({ fields => [ qw( profile_id
printer_name paper_bin ) ], filters => {template_id => [ $template_id, '' ]} }
);
++++++++++ push @$profile_list, {paper_bin => 'N/A', profile_id => 0,
printer_name => 'No Profile'};
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list