Posted by frazras on December 9, 2008 at 6:32am
5 followers
Jump to:
| Project: | SMS Framework |
| Version: | 5.x-1.x-dev |
| Component: | SMS User |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Will White |
| Status: | closed (fixed) |
Issue Summary
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.
| Attachment | Size |
|---|---|
| Screenshot.png | 67.81 KB |
Comments
#1
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!
#2
any luck on this?
#3
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']))) {
#4
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!!
#5
Committed. Thanks for the help!
http://drupal.org/cvs?commit=180876
#6
Automatically closed -- issue fixed for 2 weeks with no activity.