Please your help to customize the My Leads Dashlet at Home. I need to Hide the converted leads on the dashlet list.
I created a New Custom Dashlet and is working well, but need to change the default filter on the list, similar to this on ListView:
$this->params['custom_where'] = ' AND leads.status <> "Converted" ';
function listViewProcess(){
$this->processSearchForm();
$this->lv->searchColumns = $this->searchForm->searchColumns;
if(!$this->headers)
return;
//Filtro para ocultar los Cliente Potenciales Convertidos
$this->params['custom_where'] = ' AND leads.status <> "Converted" ';
if(empty($_REQUEST['search_form_only']) || $_REQUEST['search_form_only'] == false){
$this->lv->ss->assign("SEARCH",true);
$this->lv->setup($this->seed, 'custom/modules/Leads/tpls/view.list.tpl', $this->where, $this->params);
$savedSearchName = empty($_REQUEST['saved_search_select_name']) ? '' : (' - ' . $_REQUEST['saved_search_select_name']);
$display = $this->lv->display();
//echo $this->lv->display();
echo $display;
}
}