Closed (fixed)
Project:
SMS Framework
Version:
8.x-1.x-dev
Component:
SMS User
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Jun 2015 at 18:11 UTC
Updated:
7 Aug 2015 at 13:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
nDigitHQ commentedComment #2
nDigitHQ commentedComment #3
nDigitHQ commentedComment #4
nDigitHQ commentedUpdated the issue. Problem is with both the dev and alpha branches.
The function sms_user_validate_number_element doesn't check to see if the field is optional. It passes it to the validation no matter what.
Comment #5
nDigitHQ commentedWas able to patch it without git. Could you please roll this into the next release?
Comment #6
almaudoh commentedNeed to write a failing test for this bug first.
Comment #7
almaudoh commentedUploaded failing test...
Comment #9
almaudoh commentedThis patch may fix the bug, but also introduces another one - the validation will no more work when you supply a mobile number in the optional textbox.
Attached patch fixes it where the problem lies - in the
sms_validate_number()function.Tests also pass.
Comment #11
almaudoh commentedCommitted / pushed to 7.x-1.x
Comment #12
almaudoh commentedNeed to port this to 8.x-1.x branch.
Comment #13
almaudoh commentedD8 patch...
Comment #16
almaudoh commentedCommitted and pushed D8 port to 8.x-1.x
Comment #17
nDigitHQ commentedThank you!