@@ -, +, @@ profile or template a) go to http://localhost:8081/cgi-bin/koha/patroncards/manage.pl?card_element=layout b) click on edit 'Test Layout' c) WARNING: An unsupported operation was attempted on layout 20. Please have your system administrator check the error log for details. a) go to http://localhost:8081/cgi-bin/koha/patroncards/manage.pl?card_element=layout b) click on edit 'Test Layout' c) Edit patron card layout form 20 shows up a) go to http://localhost:8081/cgi-bin/koha/patroncards/manage.pl?card_element=template or http://localhost:8081/cgi-bin/koha/patroncards/manage.pl?card_element=profile b) click edit on an item in the table c) notice that the forms are empty --- koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt | 2 +- patroncards/edit-layout.pl | 2 +- patroncards/edit-profile.pl | 2 +- patroncards/edit-template.pl | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) --- a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/patroncards/manage.tt @@ -96,7 +96,7 @@ [% FOREACH text_field IN table_loo.text_fields %] [% IF ( text_field.select_field ) %] - Edit + Edit [% IF ( print ) %] Export [% END %] --- a/patroncards/edit-layout.pl +++ a/patroncards/edit-layout.pl @@ -80,7 +80,7 @@ sub _set_selected { return \@select_list; } -if ($op eq 'cud-edit') { +if ($op eq 'edit_form') { warn sprintf("Error performing '%s': No 'layout_id' passed in.", $op) unless ($layout_id); $layout = C4::Patroncards::Layout->retrieve(layout_id => $layout_id); $layout_xml = XMLin($layout->get_attr('layout_xml'), ForceArray => 1); --- a/patroncards/edit-profile.pl +++ a/patroncards/edit-profile.pl @@ -45,7 +45,7 @@ my @label_template = (); my $units = get_unit_values(); -if ($op eq 'cud-edit') { # FIXME This looks like edit_form ? +if ($op eq 'edit_form') { # FIXME This looks like edit_form ? $profile = C4::Patroncards::Profile->retrieve(profile_id => $profile_id); $template_list = get_all_templates({ fields => [ qw( template_id template_code profile_id ) ] }); } --- a/patroncards/edit-template.pl +++ a/patroncards/edit-template.pl @@ -45,7 +45,7 @@ my $profile_list = undef; my $units = get_unit_values(); -if ($op eq 'cud-edit') { # FIXME This looks like edit_form +if ($op eq 'edit_form') { # FIXME This looks like edit_form $card_template = C4::Patroncards::Template->retrieve(template_id => $template_id); $profile_list = get_all_profiles({ fields => [ qw( profile_id printer_name paper_bin ) ], filters => {template_id => [ $template_id, 0 ], creator => 'Patroncards'} } ); } --