[Koha-bugs] [Bug 14683] New: Unable to clear SMS number

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Aug 14 16:26:45 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14683

            Bug ID: 14683
           Summary: Unable to clear SMS number
 Change sponsored?: ---
           Product: Koha
           Version: master
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P5 - low
         Component: OPAC
          Assignee: oleonard at myacpl.org
          Reporter: larit at student.uef.fi
        QA Contact: testopia at bugs.koha-community.org

In opac-messaging.pl (your messaging) you cannot unset your SMS number once it
has been set if your mobile (other phone) field is empty.

When checking for modified SMS number, we also check if SMS number does not
equal mobile phone. This is causing the bug:

$query->param('SMSnumber') ne $borrower->{'mobile'}

Since mobile is empty and the given SMS number is also empty, the given SMS
number will not be saved. Does anybody have an idea why we have this kind of
condition?

to reproduce:
-2. Make sure borrower does not have mobile (other phone) set
-1. Make sure you have SMS messaging enabled
1. Navigate to your messaging
2. Insert SMS number and submit
3. Clear SMS number and submit
4. Observe that the sms number did not change

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list