Skip to content

Commit

Permalink
Bug 14683: [QA Follow-up] Similar change for staff
Browse files Browse the repository at this point in the history
Script memberentry.pl contained a similar line.
Solution is simpler here.

Test plan:
[1] Add, change or clear the sms number at staff side.

Signed-off-by: Marcel de Rooy <[email protected]>

Signed-off-by: Katrin Fischer <[email protected]>
Signed-off-by: Tomas Cohen Arazi <[email protected]>
  • Loading branch information
mderooy authored and tomascohen committed Sep 7, 2015
1 parent 9b8d716 commit bdf4894
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions members/memberentry.pl
Original file line number Diff line number Diff line change
Expand Up @@ -366,14 +366,10 @@ BEGIN
}
}

if (
defined $input->param('SMSnumber')
&& (
$input->param('SMSnumber') eq ""
or $input->param('SMSnumber') ne $newdata{'mobile'}
)
) {
$newdata{smsalertnumber} = $input->param('SMSnumber');
# BZ 14683: Do not mixup mobile [read: other phone] with smsalertnumber
my $sms = $input->param('SMSnumber');
if ( defined $sms ) {
$newdata{smsalertnumber} = $sms;
}

### Error checks should happen before this line.
Expand Down Expand Up @@ -689,7 +685,7 @@ BEGIN
C4::Form::MessagingPreferences::set_form_values({ borrowernumber => $borrowernumber }, $template);
}
$template->param(SMSSendDriver => C4::Context->preference("SMSSendDriver"));
$template->param(SMSnumber => defined $data{'smsalertnumber'} ? $data{'smsalertnumber'} : $data{'mobile'});
$template->param(SMSnumber => $data{'smsalertnumber'} );
$template->param(TalkingTechItivaPhone => C4::Context->preference("TalkingTechItivaPhoneNotification"));
}
Expand Down

0 comments on commit bdf4894

Please sign in to comment.