Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I get
The phone number is invalid.
whenever I edit the user profile, whether or not I change anything. Besides I see nowhere to enter a phone number except under the mobile settings tab.
Comment | File | Size | Author |
---|---|---|---|
Screenshot.png | 67.81 KB | frazras |
Comments
Comment #1
Will White CreditAttribution: Will White commentedI believe this occurs when the "Show mobile fields during registration" option is enabled at admin/smsframework/sms_user. Try disabling it and test again. I'll work on a fix. Thanks!
Comment #2
frazras CreditAttribution: frazras commentedany luck on this?
Comment #3
tdway@drupal.org CreditAttribution: tdway@drupal.org commentedOne possible fix is to change the following line (328) in the sms_user_user function of the sms_user.module file
from:
if (variable_get('sms_user_registration_form', 0) == 2 || strlen($edit['sms_user'][0]['number'])) {
to:
if (!empty($edit['sms_user']) && (variable_get('sms_user_registration_form', 0) == 2 || strlen($edit['sms_user'][0]['number']))) {
Comment #4
maria_zk CreditAttribution: maria_zk commentedI confirm that this works in 5.x version. This solved my issue as posted here (http://drupal.org/node/375174)
Great job!! Thank you very much for this!!
Comment #5
Will White CreditAttribution: Will White commentedCommitted. Thanks for the help!
http://drupal.org/cvs?commit=180876