I need to remove the "Add to Favorite" star icon from the list view of Targets module. I have a new view.list.php in SugarCRM\custom\modules\Prospects\views where I set $this->lv->ss->favorites :
But when it is rendered in the template the $favorites variable is still true, so the icon still displays. What am I doing wrong?PHP Code:if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
require_once('include/MVC/View/views/view.list.php');
class ProspectsViewList extends ViewList
{
public function preDisplay()
{
parent::preDisplay();
$this->lv->targetList = true;
$this->lv->ss->favorites = false;
//var_dump($this->lv->ss);
}
function Display()
{
$this->lv->quickViewLinks = false;
parent::Display();
}
}


LinkBack URL
About LinkBacks



Reply With Quote
Bookmarks