Filter on name or description

This commit is contained in:
Dany De Bontridder 2012-01-09 13:49:15 +00:00
parent 76ae03b966
commit 5d74df1f27
2 changed files with 2 additions and 2 deletions

View file

@ -137,7 +137,7 @@ echo $w->input('p_nom',$p_nom);
?>
<span class="notice">
<?php
echo _('Donnez une partie du nom du dossier à rechercher');
echo _('Donnez une partie du nom du dossier ou de la description à rechercher');
?>
</span>
</form>

View file

@ -965,7 +965,7 @@ class User
join priv_user on ( priv_jnt=jnt_id)
where use_active=1
and use_login='".sql_string($this->login)."'
and priv_priv != 'X' and dos_name ilike '%$p_filter%'
and priv_priv != 'X' and ( dos_name ilike '%$p_filter%' or dos_description ~* '$p_filter')
order by dos_name";
}
else