Project

General

Profile

Actions

Bug #6598

closed

Registration defaults lost on prefilled

Bug #6598: Registration defaults lost on prefilled

Added by krileon over 8 years ago. Updated about 8 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

Updated by krileon over 8 years ago Actions #1

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.

Updated by krileon over 8 years ago Actions #2

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

Updated by krileon over 8 years ago Actions #3

_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.

Updated by krileon over 8 years ago Actions #4

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

Updated by krileon about 8 years ago Actions #5

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom