noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 01/01: Bug : cannot print action in profil Ca


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 01/01: Bug : cannot print action in profil Cannot add a export / printing in profile
Date: Wed, 20 Dec 2017 04:42:29 -0500 (EST)

sparkyx pushed a commit to annotated tag rel6919.4
in repository noalyss.

commit 29d9ffe4fbd6cbec746614b6147f6d6935f8b197
Author: Dany De Bontridder <address@hidden>
Date:   Wed Jul 12 19:29:59 2017 +0200

    Bug : cannot  print action  in profil
    Cannot add a export / printing in profile
---
 include/ajax/ajax_get_profile.php    | 1 +
 include/class/class_profile_menu.php | 1 +
 include/profile.inc.php              | 2 +-
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/include/ajax/ajax_get_profile.php 
b/include/ajax/ajax_get_profile.php
index 952852b..2ef1618 100644
--- a/include/ajax/ajax_get_profile.php
+++ b/include/ajax/ajax_get_profile.php
@@ -55,6 +55,7 @@ $a_tab[$call_tab]='tabs_selected';
     <li class="<?php echo $a_tab['profile_gestion_div']?>"><a 
href="javascript:void(0)" style="" 
onclick="unselect_other_tab(this.parentNode.parentNode);this.parentNode.className='tabs_selected';profile_show('profile_gestion_div')"><?php
 echo _('Action Gestion')?> </a></li>
     <li class="<?php echo $a_tab['profile_repo_div']?>"><a 
href="javascript:void(0)"  
onclick="unselect_other_tab(this.parentNode.parentNode);this.parentNode.className='tabs_selected';profile_show('profile_repo_div')"><?php
 echo _('Dépôts')?></a>&nbsp;
 </ul>
+<div style="clear:both"></div>
 <?php endif; ?>
 
 <?php 
diff --git a/include/class/class_profile_menu.php 
b/include/class/class_profile_menu.php
index a56d630..791b636 100644
--- a/include/class/class_profile_menu.php
+++ b/include/class/class_profile_menu.php
@@ -62,6 +62,7 @@ class Profile_Menu extends Profile_Menu_sql
                 ?>
                 <li id="sub<?php echo $menu['pm_id'] ?>">
 
+                    <?php echo $me_code ?>
                     <?php echo $me_menu ?>
                     <?php echo $me_desc ?>  <?php echo $me_def ?>
                     <?php $ret2=$this->cn->exec_sql("
diff --git a/include/profile.inc.php b/include/profile.inc.php
index 63715e8..6a1b15f 100644
--- a/include/profile.inc.php
+++ b/include/profile.inc.php
@@ -350,7 +350,7 @@ if (isset($_POST['add_menu'])||isset($_POST['add_impress']))
          * Do not insert twice the same menu 
          */
         $duplicate = $cn->get_value(" select count(*) from profile_menu where "
-                . " pm_id_dep = $1 and me_code = $2",array($p_dep,$me_code));
+                . " pm_id_dep = $1 and me_code = 
$2",array($pm_id_dep,$me_code));
         if ( $duplicate > 0 ) {
             throw new Exception(_('Doublon'));
         }



reply via email to

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