noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 02/03: Task #1151 - Amélioration configurati


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 02/03: Task #1151 - Amélioration configuration des menus Bug : when adding new plugin
Date: Fri, 21 Aug 2015 15:51:29 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit 8888381f6f37794cd276a5e75ba8483113b5b91d
Author: Dany De Bontridder <address@hidden>
Date:   Thu Aug 20 16:14:40 2015 +0200

    Task #1151 - Amélioration configuration des menus
    Bug : when  adding new plugin
---
 include/cfgplugin.inc.php |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/include/cfgplugin.inc.php b/include/cfgplugin.inc.php
index 030f9a1..b440dd3 100644
--- a/include/cfgplugin.inc.php
+++ b/include/cfgplugin.inc.php
@@ -76,7 +76,19 @@ if ( isset ($_POST['save_plugin'])){
                 if ( $count == 0 ) {
                     $a_plugin[$i]->insert();
                 }
-                $a_plugin[$i]->insert_profile_menu($profile,'EXT');
+                try
+                {
+                    $a_plugin[$i]->insert_profile_menu($profile,'EXT');
+                }
+                catch (Exception $exc)
+                {
+                    $profile_name=$cn->get_value('select profile.p_name from 
profile where p_id=$1'
+                            ,array($profile));
+                    echo '<p class="notice">';
+                    echo "code $code"," profile $profile_name 
",$exc->getMessage();
+                    echo '</p>';
+                }
+
             } else {
                 // delete
                 $a_plugin[$i]->remove_from_profile_menu ($profile);



reply via email to

[Prev in Thread] Current Thread [Next in Thread]