Bug : cannot print action in profil

Cannot add a export / printing in profile

Conflicts:
	include/ajax/ajax_get_profile.php
This commit is contained in:
Dany De Bontridder 2017-07-12 19:29:59 +02:00
parent cb97fb03be
commit 5980cc89bf
3 changed files with 4 additions and 1 deletions

View file

@ -58,7 +58,9 @@ $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

View file

@ -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("

View file

@ -331,7 +331,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'));
}