https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24001
Rinrada Wongsaichua <hlunli...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #30 from Rinrada Wongsaichua <hlunli...@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. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org https://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/