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

(-)a/members/memberentry.pl (-10 / +5 lines)
Lines 365-378 if ( ($op eq 'modify' || $op eq 'insert' || $op eq 'save'|| $op eq 'duplicate') Link Here
365
    }
365
    }
366
}
366
}
367
367
368
if (
368
# BZ 14683: Do not mixup mobile [read: other phone] with smsalertnumber
369
        defined $input->param('SMSnumber')
369
my $sms = $input->param('SMSnumber');
370
    &&  (
370
if ( defined $sms ) {
371
           $input->param('SMSnumber') eq ""
371
    $newdata{smsalertnumber} = $sms;
372
        or $input->param('SMSnumber') ne $newdata{'mobile'}
373
        )
374
) {
375
    $newdata{smsalertnumber} = $input->param('SMSnumber');
376
}
372
}
377
373
378
###  Error checks should happen before this line.
374
###  Error checks should happen before this line.
Lines 688-694 if (C4::Context->preference('EnhancedMessagingPreferences')) { Link Here
688
        C4::Form::MessagingPreferences::set_form_values({ borrowernumber => $borrowernumber }, $template);
684
        C4::Form::MessagingPreferences::set_form_values({ borrowernumber => $borrowernumber }, $template);
689
    }
685
    }
690
    $template->param(SMSSendDriver => C4::Context->preference("SMSSendDriver"));
686
    $template->param(SMSSendDriver => C4::Context->preference("SMSSendDriver"));
691
    $template->param(SMSnumber     => defined $data{'smsalertnumber'} ? $data{'smsalertnumber'} : $data{'mobile'});
687
    $template->param(SMSnumber     => $data{'smsalertnumber'} );
692
    $template->param(TalkingTechItivaPhone => C4::Context->preference("TalkingTechItivaPhoneNotification"));
688
    $template->param(TalkingTechItivaPhone => C4::Context->preference("TalkingTechItivaPhoneNotification"));
693
}
689
}
694
690
695
- 

Return to bug 14683