diff --git a/html/admin/sql/patch/upgrade13.sql b/html/admin/sql/patch/upgrade13.sql
index ecac05941..eb46e0d08 100644
--- a/html/admin/sql/patch/upgrade13.sql
+++ b/html/admin/sql/patch/upgrade13.sql
@@ -548,5 +548,10 @@ alter table action_gestion add ag_ref text;
create unique index k_ag_ref on action_gestion(ag_ref);
update version set val=14;
+insert into action values(28,'Module Suivi Document');
+insert into action values(22,'Module Client');
+insert into action (24,'Module Fournisseur');
+insert into action (26,'Module Administration');
+insert into action values (30,'Module Gestion');
commit;
diff --git a/html/commercial.php b/html/commercial.php
index b66a66a1b..47553bad2 100644
--- a/html/commercial.php
+++ b/html/commercial.php
@@ -36,12 +36,14 @@ if ( isset ($_REQUEST['dos'] ) ) {
}
+
include_once ("postgres.php");
/* Admin. Dossier */
$rep=DbConnect($_SESSION['g_dossier']);
require_once ("class_user.php");
$User=new cl_user($rep);
$User->Check();
+
//-----------------------------------------------------
// update preference
//-----------------------------------------------------
@@ -94,6 +96,7 @@ echo ShowItem(array(
echo '';
$cn=DbConnect($_SESSION['g_dossier']);
+$User->AccessRequest($cn,SEC_GESTION);
//-----------------------------------------------------
// p_action == pref
//-----------------------------------------------------
diff --git a/html/fiche_search.php b/html/fiche_search.php
index 5ebefeed6..2712d6912 100644
--- a/html/fiche_search.php
+++ b/html/fiche_search.php
@@ -160,6 +160,8 @@ if ( isset ( $_POST['search']) ) {
$class="odd";
$text=FormatString($row['vw_name']);
$r.="";
+ $qcode= $row['quick_code'] ;
+
$r.=sprintf ('',
"select" . $i,
$e_name,
@@ -169,7 +171,7 @@ if ( isset ( $_POST['search']) ) {
$row['vw_buy'],
$row['tva_id'],
$row['tva_label'] ,
- $row['quick_code']
+ $qcode
);
$r.=" ".$row['vw_name'];
if ( $row['vw_addr'] !="")
diff --git a/include/ac_common.php b/include/ac_common.php
index 58492bc88..6ac012bde 100644
--- a/include/ac_common.php
+++ b/include/ac_common.php
@@ -189,13 +189,11 @@ function html_button_logout() {
*/
-function NoAccess() {
- echo "
";
- echo "