can('clientmap','read')) throw new Exception("Permission non accordée"); Plugin::need('client/Client'); $filters = array(); Plugin::callHook('client_filter',array(&$filters)); Plugin::callHook('client_search_view',array(&$columns)); //Filtres && colonne tableau en fonction des champs dynamiques if($myFirm->has_plugin('fr.core.dynamicform') || ($myFirm->id==-1 && Plugin::is_active('fr.core.dynamicform')) ){ Plugin::need('dynamicform/DynamicForm'); $options = array(); if(!empty($_['firm']) && is_numeric($_['firm'])) $options['firm'] = $_['firm']; //Récuperation des champs custom $fields = Dynamicform::list('client-sheet-custom',$options); //Ajout des champs custom en filtres $filters = array_merge($filters,Dynamicform::get_filters($fields)); //Ajout des champs custom en colonnes dynamiques $columns = array_merge($columns,Dynamicform::get_dynamic_columns($fields)); } ?>