Bug 36877: (follow-up) Fix op eq edit to op eq edit_form in edit-batch.pl

Additionally removes fixme comments

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jan Kissig 2024-05-16 14:37:16 +02:00 committed by Katrin Fischer
parent 9a33f6fcb2
commit dfd2bc352a
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
3 changed files with 3 additions and 3 deletions

View File

@ -123,7 +123,7 @@ elsif ( $op eq 'cud-dedup' ) {
exit;
}
}
elsif ($op eq 'edit') { #FIXME edit_form actually
elsif ($op eq 'edit_form') {
$batch = C4::Patroncards::Batch->retrieve(batch_id => $batch_id);
$template->param( description => $batch->{'description'} );
}

View File

@ -45,7 +45,7 @@ my @label_template = ();
my $units = get_unit_values();
if ($op eq 'edit_form') { # FIXME This looks like edit_form ?
if ($op eq 'edit_form') {
$profile = C4::Patroncards::Profile->retrieve(profile_id => $profile_id);
$template_list = get_all_templates({ fields => [ qw( template_id template_code profile_id ) ] });
}

View File

@ -45,7 +45,7 @@ my $profile_list = undef;
my $units = get_unit_values();
if ($op eq 'edit_form') { # FIXME This looks like edit_form
if ($op eq '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'} } );
}