View | Details | Raw Unified | Return to bug 36877
Collapse All | Expand All

(-)a/patroncards/edit-batch.pl (-1 / +1 lines)
Lines 123-129 elsif ( $op eq 'cud-dedup' ) { Link Here
123
        exit;
123
        exit;
124
    }
124
    }
125
}
125
}
126
elsif ($op eq 'edit') { #FIXME edit_form actually
126
elsif ($op eq 'edit_form') {
127
    $batch = C4::Patroncards::Batch->retrieve(batch_id => $batch_id);
127
    $batch = C4::Patroncards::Batch->retrieve(batch_id => $batch_id);
128
    $template->param( description => $batch->{'description'} );
128
    $template->param( description => $batch->{'description'} );
129
}
129
}
(-)a/patroncards/edit-profile.pl (-1 / +1 lines)
Lines 45-51 my @label_template = (); Link Here
45
45
46
my $units = get_unit_values();
46
my $units = get_unit_values();
47
47
48
if ($op eq 'edit_form') { # FIXME This looks like edit_form ?
48
if ($op eq 'edit_form') {
49
    $profile = C4::Patroncards::Profile->retrieve(profile_id => $profile_id);
49
    $profile = C4::Patroncards::Profile->retrieve(profile_id => $profile_id);
50
    $template_list = get_all_templates({ fields => [ qw( template_id template_code profile_id ) ] });
50
    $template_list = get_all_templates({ fields => [ qw( template_id template_code profile_id ) ] });
51
}
51
}
(-)a/patroncards/edit-template.pl (-2 / +1 lines)
Lines 45-51 my $profile_list = undef; Link Here
45
45
46
my $units = get_unit_values();
46
my $units = get_unit_values();
47
47
48
if ($op eq 'edit_form') { # FIXME This looks like edit_form
48
if ($op eq 'edit_form') {
49
    $card_template = C4::Patroncards::Template->retrieve(template_id => $template_id);
49
    $card_template = C4::Patroncards::Template->retrieve(template_id => $template_id);
50
    $profile_list = get_all_profiles({ fields => [ qw( profile_id printer_name paper_bin ) ], filters => {template_id => [ $template_id, 0 ], creator => 'Patroncards'} } );
50
    $profile_list = get_all_profiles({ fields => [ qw( profile_id printer_name paper_bin ) ], filters => {template_id => [ $template_id, 0 ], creator => 'Patroncards'} } );
51
}
51
}
52
- 

Return to bug 36877