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

(-)a/C4/Creators/Profile.pm (-1 / +1 lines)
Lines 59-65 sub new { Link Here
59
    my $type = ref($invocant) || $invocant;
59
    my $type = ref($invocant) || $invocant;
60
    my $self = {
60
    my $self = {
61
        printer_name    => 'Default Printer',
61
        printer_name    => 'Default Printer',
62
        template_id     => '',
62
        template_id     => 0,
63
        paper_bin       => 'Tray 1',
63
        paper_bin       => 'Tray 1',
64
        offset_horz     => 0,
64
        offset_horz     => 0,
65
        offset_vert     => 0,
65
        offset_vert     => 0,
(-)a/patroncards/edit-template.pl (-3 / +2 lines)
Lines 47-56 my $units = get_unit_values(); Link Here
47
47
48
if ($op eq 'edit') {
48
if ($op eq 'edit') {
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, '' ]} } );
50
    $profile_list = get_all_profiles({ fields => [ qw( profile_id printer_name paper_bin ) ], filters => {template_id => [ $template_id, '' ], creator => 'Patroncards'} } );
51
}
51
}
52
elsif ($op eq 'save') {
52
elsif ($op eq 'save') {
53
    my @params = (      profile_id      => scalar $cgi->param('profile_id') || '',
53
    my @params = (      profile_id      => scalar $cgi->param('profile_id') || 0,
54
                        template_code   => scalar $cgi->param('template_code'),
54
                        template_code   => scalar $cgi->param('template_code'),
55
                        template_desc   => scalar $cgi->param('template_desc'),
55
                        template_desc   => scalar $cgi->param('template_desc'),
56
                        page_width      => scalar $cgi->param('page_width'),
56
                        page_width      => scalar $cgi->param('page_width'),
57
- 

Return to bug 24001