Thanks for the links. I'm sorry, but I can't figure out what to do with these links.
I reckon to edit include/ListView/ListViewData.php below the line
Code:
$main_query = $ret_array['select'] . $params['custom_select'] . $ret_array['from']
Now, what exactly do i write there?
The whole function?
Code:
function listViewProcess() {
global $current_user;
$this->processSearchForm();
if(!$current_user->is_admin) // remove this condition if you dont want admin user to view the "Closed Lost" Opportunities.
$this->params['custom_where'] = ' AND opportunities.sales_stage <> "Closed Lost" ';
if (empty($_REQUEST['search_form_only']) || $_REQUEST['search_form_only'] == false) {
$this->lv->setup($this->seed, 'include/ListView/ListViewGeneric.tpl', $this->where, $this->params);
$savedSearchName = empty($_REQUEST['saved_search_select_name']) ? '' : (' - ' . $_REQUEST['saved_search_select_name']);
echo $this->lv->display();
}
}
Bookmarks