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

(-)a/opac/opac-messaging.pl (-4 / +2 lines)
Lines 50-57 my $messaging_options = C4::Members::Messaging::GetMessagingOptions(); Link Here
50
50
51
if ( defined $query->param('modify') && $query->param('modify') eq 'yes' ) {
51
if ( defined $query->param('modify') && $query->param('modify') eq 'yes' ) {
52
52
53
    # If they've modified the SMS number, record it.
53
    if ( $query->param('SMSnumber') ne $borrower->{'mobile'} )  {
54
    if ( ( defined $query->param('SMSnumber') ) && ( $query->param('SMSnumber') ne $borrower->{'mobile'} ) ) {
55
        ModMember( borrowernumber => $borrowernumber,
54
        ModMember( borrowernumber => $borrowernumber,
56
                   smsalertnumber => $query->param('SMSnumber') );
55
                   smsalertnumber => $query->param('SMSnumber') );
57
        $borrower = GetMemberDetails( $borrowernumber );
56
        $borrower = GetMemberDetails( $borrowernumber );
Lines 65-71 C4::Form::MessagingPreferences::set_form_values({ borrowernumber => $borrowe Link Here
65
# warn( Data::Dumper->Dump( [ $messaging_options ], [ 'messaging_options' ] ) );
64
# warn( Data::Dumper->Dump( [ $messaging_options ], [ 'messaging_options' ] ) );
66
$template->param( BORROWER_INFO         => [ $borrower ],
65
$template->param( BORROWER_INFO         => [ $borrower ],
67
                  messagingview         => 1,
66
                  messagingview         => 1,
68
                  SMSnumber => defined $borrower->{'smsalertnumber'} ? $borrower->{'smsalertnumber'} : $borrower->{'mobile'},
67
                  SMSnumber => $borrower->{'smsalertnumber'} ? $borrower->{'smsalertnumber'} : $borrower->{'mobile'},
69
                  SMSSendDriver                =>  C4::Context->preference("SMSSendDriver"),
68
                  SMSSendDriver                =>  C4::Context->preference("SMSSendDriver"),
70
                  TalkingTechItivaPhone        =>  C4::Context->preference("TalkingTechItivaPhoneNotification") );
69
                  TalkingTechItivaPhone        =>  C4::Context->preference("TalkingTechItivaPhoneNotification") );
71
70
72
- 

Return to bug 14683