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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/modborrowers.tt (+3 lines)
Lines 254-259 Link Here
254
                                                <th>Primary email</th>
254
                                                <th>Primary email</th>
255
                                                <th>Primary phone</th>
255
                                                <th>Primary phone</th>
256
                                                <th>Other phone</th>
256
                                                <th>Other phone</th>
257
                                                <th>Fax</th>
257
                                                <th>Registration date</th>
258
                                                <th>Registration date</th>
258
                                                <th>Expiry date</th>
259
                                                <th>Expiry date</th>
259
                                                [% IF CanUpdatePasswordExpiration %]
260
                                                [% IF CanUpdatePasswordExpiration %]
Lines 293-298 Link Here
293
                                                    <td>[% borrower.email | html %]</td>
294
                                                    <td>[% borrower.email | html %]</td>
294
                                                    <td>[% borrower.phone | html %]</td>
295
                                                    <td>[% borrower.phone | html %]</td>
295
                                                    <td>[% borrower.mobile | html %]</td>
296
                                                    <td>[% borrower.mobile | html %]</td>
297
                                                    <td>[% borrower.fax | html %]</td>
296
                                                    <td data-order="[% borrower.dateenrolled | html %]">[% borrower.dateenrolled | $KohaDates %]</td>
298
                                                    <td data-order="[% borrower.dateenrolled | html %]">[% borrower.dateenrolled | $KohaDates %]</td>
297
                                                    <td data-order="[% borrower.dateexpiry | html %]">[% borrower.dateexpiry | $KohaDates %]</td>
299
                                                    <td data-order="[% borrower.dateexpiry | html %]">[% borrower.dateexpiry | $KohaDates %]</td>
298
                                                    [% IF CanUpdatePasswordExpiration %]
300
                                                    [% IF CanUpdatePasswordExpiration %]
Lines 351-356 Link Here
351
                                                [% CASE 'email' %]<span>Primary email:</span>
353
                                                [% CASE 'email' %]<span>Primary email:</span>
352
                                                [% CASE 'phone' %]<span>Primary phone:</span>
354
                                                [% CASE 'phone' %]<span>Primary phone:</span>
353
                                                [% CASE 'mobile' %]<span>Other phone:</span>
355
                                                [% CASE 'mobile' %]<span>Other phone:</span>
356
                                                [% CASE 'fax' %]<span>Fax:</span>
354
                                                [% CASE 'sort1' %]<span>Sort 1:</span>
357
                                                [% CASE 'sort1' %]<span>Sort 1:</span>
355
                                                [% CASE 'sort2' %]<span>Sort 2:</span>
358
                                                [% CASE 'sort2' %]<span>Sort 2:</span>
356
                                                [% CASE 'dateenrolled' %]<span>Registration date:</span>
359
                                                [% CASE 'dateenrolled' %]<span>Registration date:</span>
(-)a/tools/modborrowers.pl (-2 / +10 lines)
Lines 280-285 if ( $op eq 'cud-show' ) { Link Here
280
            mandatory => ( grep /mobile/, @mandatoryFields ) ? 1 : 0,
280
            mandatory => ( grep /mobile/, @mandatoryFields ) ? 1 : 0,
281
        }
281
        }
282
        ,
282
        ,
283
        {
284
            name      => "fax",
285
            type      => "text",
286
            mandatory => ( grep /fax/, @mandatoryFields ) ? 1 : 0,
287
        }
288
        ,
283
        {
289
        {
284
            name => "sort1",
290
            name => "sort1",
285
            type => @sort1_option ? "select" : "text",
291
            type => @sort1_option ? "select" : "text",
Lines 345-351 if ( $op eq 'cud-do' ) { Link Here
345
351
346
    my @disabled = $input->multi_param('disable_input');
352
    my @disabled = $input->multi_param('disable_input');
347
    my $infos;
353
    my $infos;
348
    for my $field ( qw/surname firstname branchcode categorycode streetnumber address address2 city state zipcode country email phone mobile sort1 sort2 dateenrolled dateexpiry password_expiration_date borrowernotes opacnote debarred debarredcomment/ ) {
354
    for my $field (
355
        qw/surname firstname branchcode categorycode streetnumber address address2 city state zipcode country email phone mobile fax sort1 sort2 dateenrolled dateexpiry password_expiration_date borrowernotes opacnote debarred debarredcomment/
356
      )
357
    {
349
        my $value = $input->param($field);
358
        my $value = $input->param($field);
350
        $infos->{$field} = $value if $value;
359
        $infos->{$field} = $value if $value;
351
        $infos->{$field} = "" if grep { $_ eq $field } @disabled;
360
        $infos->{$field} = "" if grep { $_ eq $field } @disabled;
352
- 

Return to bug 36443