Opened 15 years ago
Closed 14 years ago
#2586 closed defect (bug) (fixed)
BP_XProfile_ProfileData->populate() should still populate field_id and user_id when not in db
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 1.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Core | Keywords: | |
Cc: |
Description
Right now when a new BP_XProfile_Field is instanced and there isn't any data for the field in the database setting the field value and then running save will fail.
In order to actually be able to save the field the field_id and user_id has to be set manually even though these variables are known when the field data is populated.
This fix will populate field_id and user_id when a row is not found in the database and thus allowing just setting the value and then calling save to work.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Confirmed.