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

(-)a/C4/SMS.pm (+1 lines)
Lines 113-118 sub send_sms { Link Here
113
            $driver,
113
            $driver,
114
            _login    => C4::Context->preference('SMSSendUsername'),
114
            _login    => C4::Context->preference('SMSSendUsername'),
115
            _password => C4::Context->preference('SMSSendPassword'),
115
            _password => C4::Context->preference('SMSSendPassword'),
116
            _from     => C4::Context->preference('SMSSendFrom'),
116
            %args,
117
            %args,
117
        );
118
        );
118
119
(-)a/installer/data/mysql/atomicupdate/bug_21988-add-syspref-SMSSendFrom.sql (+1 lines)
Line 0 Link Here
1
INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type`) VALUES  ('SMSSendFrom', '', '', '"From" number used to send SMS messages', 'Free');
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 530-535 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
530
('SMSSendDriver','','','Sets which SMS::Send driver is used to send SMS messages.','free'),
530
('SMSSendDriver','','','Sets which SMS::Send driver is used to send SMS messages.','free'),
531
('SMSSendPassword', '', '', 'Password used to send SMS messages', 'free'),
531
('SMSSendPassword', '', '', 'Password used to send SMS messages', 'free'),
532
('SMSSendUsername', '', '', 'Username/Login used to send SMS messages', 'free'),
532
('SMSSendUsername', '', '', 'Username/Login used to send SMS messages', 'free'),
533
('SMSSendFrom', '', '', '"From" number used to send SMS messages', 'free'),
533
('SocialNetworks','0','','Enable/Disable social networks links in opac detail pages','YesNo'),
534
('SocialNetworks','0','','Enable/Disable social networks links in opac detail pages','YesNo'),
534
('SpecifyDueDate','1','','Define whether to display \"Specify Due Date\" form in Circulation','YesNo'),
535
('SpecifyDueDate','1','','Define whether to display \"Specify Due Date\" form in Circulation','YesNo'),
535
('SpecifyReturnDate',1,'','Define whether to display \"Specify Return Date\" form in Circulation','YesNo'),
536
('SpecifyReturnDate',1,'','Define whether to display \"Specify Return Date\" form in Circulation','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref (+2 lines)
Lines 142-147 Patrons: Link Here
142
         - ". Override from address with"
142
         - ". Override from address with"
143
         - pref: EmailSMSSendDriverFromAddress
143
         - pref: EmailSMSSendDriverFromAddress
144
         - "for emails sent using \"Email\" send driver."
144
         - "for emails sent using \"Email\" send driver."
145
         - "Define a number from which SMS messages will be sent"
146
         - pref: SMSSendFrom
145
     -
147
     -
146
         - pref: uppercasesurnames
148
         - pref: uppercasesurnames
147
           choices:
149
           choices:
(-)a/t/SMS.t (-1 / +1 lines)
Lines 32-37 is( C4::SMS->driver(), $driver, 'driver returns the SMSSendDriver correctly' ); Link Here
32
32
33
t::lib::Mocks::mock_preference('SMSSendUsername', 'username');
33
t::lib::Mocks::mock_preference('SMSSendUsername', 'username');
34
t::lib::Mocks::mock_preference('SMSSendPassword', 'pwd');
34
t::lib::Mocks::mock_preference('SMSSendPassword', 'pwd');
35
t::lib::Mocks::mock_preference('SMSSendFrom', '1234567890');
35
36
36
my $send_sms = C4::SMS->send_sms();
37
my $send_sms = C4::SMS->send_sms();
37
is( $send_sms, undef, 'send_sms without arguments returns undef' );
38
is( $send_sms, undef, 'send_sms without arguments returns undef' );
38
- 

Return to bug 21988