Example from contacts, how to do it properly 🙂
$this->rb->set_defaults(array( 'country'=>Base_User_SettingsCommon::get('Base_RegionalSettings','default_country'),
'zone'=>Base_User_SettingsCommon::get('Base_RegionalSettings','default_state'),
'permission'=>Base_User_SettingsCommon::get('CRM_Common','default_record_permission')));
You've set it permanently to "0", so it's obvious that it will be 0 😃
[quote:3gtmc8du]$this->rb->set_defaults(array('employees'=>array($me['id']),'permission'=>'0','signed_date'=>strtotime("today"),'start_date'=>strtotime("tomorrow"),'end_date'=>strtotime("today+1year")));[/quote:3gtmc8du]
Regards,
Adam