From 16df2ea21831b3df32af4c67583988ef9c394193 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Thu, 3 Nov 2005 10:45:30 +0000 Subject: [PATCH] Bug when create new databases --- doc/function.txt | 5 +++-- include/class_user.php | 6 +++--- include/constant.php | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/doc/function.txt b/doc/function.txt index d5471dcb2..bc47ba52f 100644 --- a/doc/function.txt +++ b/doc/function.txt @@ -1,3 +1,4 @@ +************************* File = a.php **************** ************************* File = admin_repo.php **************** ************************* File = annulation.php **************** ************************* File = bal_csv.php **************** @@ -5,13 +6,13 @@ ************************* File = central.php **************** ************************* File = dossier_prefs.php **************** ************************* File = facturation.php **************** +************************* File = fiche.php **************** ************************* File = fiche_csv.php **************** ************************* File = fiche_new.php **************** -************************* File = fiche.php **************** ************************* File = fiche_search.php **************** +************************* File = form.php **************** ************************* File = form_csv.php **************** ************************* File = form_pdf.php **************** -************************* File = form.php **************** ************************* File = index.php **************** ************************* File = jrn_add.php **************** ************************* File = jrn_csv.php **************** diff --git a/include/class_user.php b/include/class_user.php index cdd32ac43..80f3caf6d 100644 --- a/include/class_user.php +++ b/include/class_user.php @@ -225,9 +225,9 @@ function GetPreferences () $Res=ExecSql($this->db,$sql); if (pg_NumRows($Res) == 0 ) { // default periode - $sql=sprintf("insert into user_local_pref (pref_periode,pref_user) - select min(p_id),'%s' from parm_periode where p_closed=false" - , $this->id); + $sql=sprintf("insert into user_local_pref (user_id,parameter_value,parameter_type) + select '%s',min(p_id),'PERIODE' from parm_periode where p_closed=false", + $this->id); $Res=ExecSql($this->db,$sql); $l_array=$this->GetPreferences(); diff --git a/include/constant.php b/include/constant.php index d7b2f6b45..74a822257 100644 --- a/include/constant.php +++ b/include/constant.php @@ -22,7 +22,7 @@ define ("phpcompta_password","dany"); define ("domaine",""); -define ("DEBUG","false"); +define ("DEBUG","true"); // securite correspond a la table // action