AnsweredAssumed Answered

Users 'no_opps' preference

Question asked by Rodrigo Morchio on Jan 30, 2017

Hello,

 

I found this piece of code in a customization:

 

$u=new User();
$u->retrieve($module->assigned_user_id);
$up=new UserPreference($u);
if($up->getPreference('no_opps')=="off"){
     //Logic
}

 

The thing is I have no idea what the 'no_opps' preference is and couldn't find any documentation about it.

 

You can also find this piece of code in /modules/Users/Save.php:

if(isset($_POST['no_opps'])) {
     $focus->setPreference('no_opps',$_POST['no_opps'], 0, 'global');
}
else {
     $focus->setPreference('no_opps','off', 0, 'global');
}

 

Does anyone have any idea about the meaning of this variable?

 

Regards,

Rodrigo Morchio

Outcomes