From 75953bcf9537ec965c4c9053038d8e2c95813210 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Tue, 15 Sep 2015 07:26:13 +0200 Subject: [PATCH] if there is no contact show a warning --- include/template/detail-action.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/template/detail-action.php b/include/template/detail-action.php index 7a95d3277..582bd0970 100644 --- a/include/template/detail-action.php +++ b/include/template/detail-action.php @@ -51,6 +51,11 @@ can_write_action($this->ag_id) == true ): + if ( $ag_contact->extra != "" ): + echo $ag_contact->search().$ag_contact->input(); + else: + echo _('Pas de catégorie de contact'); + endif; echo $ag_contact->search().$ag_contact->input(); endif; ?>