Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Read only fields don't work with JomSocial integration

Read only fields don't work with JomSocial integration 13 years 8 months ago #13433

Hi,
I would like to report a bug in the "cbreadonly" option for registration fields when there's an integration with CB od JomSocial. It seems that works only for CB. Checking the code maybe there's no check for new $map_jomsocial_fields.

So, in the file \administrator\components\com_dtregister\models\field.php you should change all occurrences of:

global $cbviewonly , $cb_integrated ,$map_cb_fields;
...
if($value != "" && $cb_integrated > 0 && $cbviewonly==1 && $my->id && isset($map_cb_fields[$this->id])){

To:

global $cbviewonly , $cb_integrated ,$map_cb_fields, $map_jomsocial_fields;
...
if($value != "" && $cbviewonly==1 && $my->id && (($cb_integrated == 1 && isset($map_cb_fields[$this->id])) || ($cb_integrated == 2 && isset($map_jomsocial_fields[$this->id])))){

Best regards,
Vincenzo

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.116 seconds