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.

CommentFileSizeAuthor
Screenshot.png67.81 KBfrazras
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Will White’s picture

Assigned: Unassigned » Will White
Priority: Critical » Normal

I 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!

frazras’s picture

any luck on this?

tdway@drupal.org’s picture

Version: 6.x-1.0-beta1 » 5.x-1.x-dev

One 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']))) {

maria_zk’s picture

I 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!!

Will White’s picture

Status: Active » Fixed

Committed. Thanks for the help!

http://drupal.org/cvs?commit=180876

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

  • Commit e733250 on 6.x-1.x, 6.x-2.x, 8.x-1.x by Will White:
    Fixed #344650 by tdway@drupal.org: prevented improper validation from...