Project

General

Profile

Actions

Bug #6598

closed

Registration defaults lost on prefilled

Added by krileon over 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
24 April 2017
Due date:
% Done:

100%

Estimated time:

Description

When using prefilled the default registration values don't work. This is due to $postdata not being null. If it's not null CB won't map the defaults in getEditTabs. See if the CB Connect mapping can be strictly to the user object and not need to map to POST.

https://www.joomlapolis.com/forum/255-developer-members-support/236519-default-registration-values-lost-with-social-login#293488

Actions #1

Updated by krileon about 7 years ago

Sending null won't work as it wipes out the mapped fields. The defaults will likely need to be triggered manually within CB Connect to fix this.

Actions #2

Updated by krileon about 7 years ago

_initFieldToDefault is private so can't be called directly either. Maybe the mapping can be done on a trigger instead?

Actions #3

Updated by krileon about 7 years ago

_initFieldToDefault is basically just doing $field->default. So this can, for now, just be set directly to the user and data array if no value exists in order to set the defaults.

Actions #4

Updated by krileon about 7 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100
Actions #5

Updated by krileon about 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF