Skip to:
Content

BuddyPress.org

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#5690 closed defect (bug) (fixed)

Xprofile's datebox type error on updated posted values

Reported by: esroyo's profile esroyo Owned by: djpaul's profile djpaul
Milestone: 2.0.2 Priority: normal
Severity: minor Version: 2.0
Component: Extended Profile Keywords: has-patch
Cc:

Description

I added a datebox type to the base group of the extended profile, so it is appearing in the signup page. If there is a validation error during the signup, it seems like datebox type is unable to pick up the values a user has already introduced.

Attachments (1)

bp-xprofile-classes.php.patch (818 bytes) - added by esroyo 10 years ago.
Fix

Download all attachments as: .zip

Change History (6)

#1 @DJPaul
10 years ago

  • Milestone changed from Awaiting Review to 2.0.2

Moving into 2.0.2 milestone for further review

#2 @DJPaul
10 years ago

Confirmed bug/regression from 2.0

#3 @djpaul
10 years ago

  • Owner set to djpaul
  • Resolution set to fixed
  • Status changed from new to closed

In 8652:

xProfile: fix datebox field validation.

If a validation error occurred when saving a profile field(s), the
datebox field type wasn’t restoring the user-submitted value after the
screen was reloaded. This was a regression introduced in BuddyPress 2.0
with the Profile Field Types rewrite.

Fixes #5690 (trunk), props esroyo for initial patch

#4 @djpaul
10 years ago

In 8653:

xProfile: fix datebox field validation.

If a validation error occurred when saving a profile field(s), the datebox field type wasn’t restoring the user-submitted value after the screen was reloaded. This was a regression introduced in BuddyPress 2.0 with the Profile Field Types rewrite.

Fixes #5690 (branch), props esroyo for initial patch

#5 @DJPaul
10 years ago

Thanks for the patch, esroyo. I used it as-is, but decided to modify it a bit so there was more validation for the month field.

Note: See TracTickets for help on using tickets.