In-Portal Issue Tracker - In-Portal CMS
Viewing Issue Advanced Details
1275 [In-Portal CMS] Data Management bug report always 2012-05-15 14:09 2012-07-25 05:30
Dmitry  
alex  
normal  
closed 5.2.0-B1  
fixed  
 
none 5.2.0-RC1  
https://groups.google.com/d/topic/in-portal-bugs/QV-1VDJp11U/discussion
Fixed user can't subscribe to newsletter
0
0001275: User can't Subscribe to Newsletter
Can't Subscribe to Newsletter due to code issues in u_OnSubscribeUser event:


Line 759 $this->RemoveRequiredFields($object);

Line 790 if ( $object->isRequired('Username') ) {
                        $object->SetDBField('Username', $user_email);
                }

First mentioned line ensures that 'Username' field is never set, and,
as result - subscriber-user record is not created with error "username
is too short" (as fact, it is empty, so it length is 0).
To fix we need to check $object->isRequired('Username') before we do $this->RemoveRequiredFields($object);
parent of 0001107closed  (5.2.0)alex Logical changes on user registration/my profile/forgot password forms 
patch User-cant-Subscribe-to-Newsletter.patch (658) 2012-05-15 14:09
http://tracker.in-portal.org/file_download.php?file_id=1649&type=bug
patch User-cant-Subscribe-to-Newsletter_v2.patch (829) 2012-05-29 08:57
http://tracker.in-portal.org/file_download.php?file_id=1684&type=bug
Issue History
2012-07-25 05:30 alex Note Added: 0004881
2012-07-25 05:30 alex Status resolved => closed
2012-05-29 08:58 alex Changeset attached 5.2.x r15370
2012-05-29 08:58 alex Note Added: 0004683
2012-05-29 08:58 alex Status reviewed and tested => resolved
2012-05-29 08:58 alex Fixed in Version => 5.2.0-RC1
2012-05-29 08:58 alex Resolution open => fixed
2012-05-29 08:58 alex Assigned To !COMMUNITY => alex
2012-05-29 08:57 alex File Added: User-cant-Subscribe-to-Newsletter_v2.patch
2012-05-29 08:57 alex Note Added: 0004682
2012-05-29 08:57 alex Status needs testing => reviewed and tested
2012-05-16 08:36 Dmitry Assigned To => !COMMUNITY
2012-05-16 08:36 Dmitry Developer => Dmitry
2012-05-16 08:36 Dmitry Status active => needs testing
2012-05-15 14:12 Dmitry Summary User can't Subscribe to a Newsletter => User can't Subscribe to Newsletter
2012-05-15 14:12 Dmitry Relationship added parent of 0001107
2012-05-15 14:09 Dmitry New Issue
2012-05-15 14:09 Dmitry File Added: User-cant-Subscribe-to-Newsletter.patch
2012-05-15 14:09 Dmitry Reference => https://groups.google.com/d/topic/in-portal-bugs/QV-1VDJp11U/discussion
2012-05-15 14:09 Dmitry Change Log Message => Fixed user can't subscribe to newsletter
2012-05-15 14:09 Dmitry Estimate Points => 0

Notes
(0004682)
alex   
2012-05-29 08:57   
Tested, but small issue with "@" symbol present in Username field was happening and it was fixed in uploaded patch (v2).
(0004683)
alex   
2012-05-29 08:58   
Fix committed to 5.2.x branch. Commit Message:

Fixes 0001275: User can't Subscribe to Newsletter
Commit on behalf of Dmitry
(0004881)
alex   
2012-07-25 05:30   
Since 5.2.0/1.2.0 versions was released.