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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-4 / +4 lines)
Lines 20-26 Link Here
20
                Modify patron
20
                Modify patron
21
            [% END %]
21
            [% END %]
22
            [% INCLUDE 'patron-title.inc' no_html = 1 %]
22
            [% INCLUDE 'patron-title.inc' no_html = 1 %]
23
            [% IF categoryname %]([% categoryname | html %])[% END %]
23
            [% IF patron_category %]([% patron_category.description | html %])[% END %]
24
        [% END %] › Patrons › Koha
24
        [% END %] › Patrons › Koha
25
    </title>
25
    </title>
26
<style>
26
<style>
Lines 65-72 legend:hover { Link Here
65
                        [% ELSE %]
65
                        [% ELSE %]
66
                            <span>Modify patron</span>
66
                            <span>Modify patron</span>
67
                        [% END %]
67
                        [% END %]
68
                        [% IF categoryname %]
68
                        [% IF patron_category %]
69
                            ([% categoryname | html %])
69
                            ([% patron_category.description | html %])
70
                        [% END %]
70
                        [% END %]
71
                    </a>
71
                    </a>
72
                </li>
72
                </li>
Lines 118-124 legend:hover { Link Here
118
                                <span>Modify patron</span>
118
                                <span>Modify patron</span>
119
                            [% END %]
119
                            [% END %]
120
                            [% INCLUDE 'patron-title.inc' %]
120
                            [% INCLUDE 'patron-title.inc' %]
121
                            [% IF categoryname %]([% categoryname | html %])[% END %]
121
                            [% IF patron_category %]([% patron_category.description | html %])[% END %]
122
                        </h1>
122
                        </h1>
123
123
124
                        [% IF quickadd && opadd && !check_member %]
124
                        [% IF quickadd && opadd && !check_member %]
(-)a/members/memberentry.pl (-6 / +5 lines)
Lines 177-187 if ( $op eq 'modify' or $op eq 'save' or $op eq 'duplicate' ) { Link Here
177
177
178
my $categorycode  = $input->param('categorycode') || $borrower_data->{'categorycode'};
178
my $categorycode  = $input->param('categorycode') || $borrower_data->{'categorycode'};
179
my $category_type = $input->param('category_type') || '';
179
my $category_type = $input->param('category_type') || '';
180
unless ($category_type or !($categorycode)){
180
my $category;
181
    my $borrowercategory = Koha::Patron::Categories->find($categorycode);
181
if ( !$category_type && $categorycode ) {
182
    $category_type    = $borrowercategory->category_type;
182
    $category = Koha::Patron::Categories->find($categorycode);
183
    my $category_name = $borrowercategory->description;
183
    $category_type    = $category->category_type;
184
    $template->param("categoryname"=>$category_name);
184
    $template->param( patron_category => $category );
185
}
185
}
186
$category_type="A" unless $category_type; # FIXME we should display a error message instead of a 500 error !
186
$category_type="A" unless $category_type; # FIXME we should display a error message instead of a 500 error !
187
187
188
- 

Return to bug 30874