id}_{$this->table_name}'>{$displayText}id}_{$this->table_name}','','{$this->module_dir}','DisplayInline','bean_id={$this->id}&related_id={$exclude_id}');\" onFocus=\"javascript:toggleMore('span_{$this->id}_{$this->table_name}','','{$this->module_dir}','DisplayInline','bean_id={$this->id}&related_id={$exclude_id}');\"> +"; } /** * create_new_list_query * * Override from SugarBean. The key here is that we are always setting $singleSelect to false for list views. * * @param string $order_by custom order by clause * @param string $where custom where clause * @param array $filter Optioanal * @param array $params Optional * * @param int $show_deleted Optional, default 0, show deleted records is set to 1. * @param string $join_type * @param boolean $return_array Optional, default false, response as array * @param object $parentbean creating a subquery for this bean. * @param boolean $singleSelect Optional, default false. * @return String select query string, optionally an array value will be returned if $return_array= true. */ function create_new_list_query($order_by, $where,$filter=array(),$params=array(), $show_deleted = 0,$join_type='', $return_array = false,$parentbean=null, $singleSelect = true, $ifListForExport = false) { if(!isset($params['collection_list'])) { $this->alter_many_to_many_query = true; $singleSelect = false; } return parent::create_new_list_query($order_by, $where, $filter, $params, $show_deleted, $join_type, $return_array, $parentbean, $singleSelect, $ifListForExport); } /** * loadFromRow * * Loads a row of data into instance of a bean. The data is passed as an array to this function * We override this instead of populateFromRow since this function is called from list view displays whereas * populateFromRow could be called in many other views. * * @param array $arr Array of data fetched from the database * */ function loadFromRow($arr) { parent::loadFromRow($arr); if(isset($arr['secondary_select_count'])) { $this->secondary_select_count = $arr['secondary_select_count']; } } }