Bug when create new databases

This commit is contained in:
sparkyx 2005-11-03 10:45:30 +00:00
parent 64fddd579c
commit 16df2ea218
3 changed files with 7 additions and 6 deletions

View file

@ -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 ****************

View file

@ -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();

View file

@ -22,7 +22,7 @@
define ("phpcompta_password","dany");
define ("domaine","");
define ("DEBUG","false");
define ("DEBUG","true");
// securite correspond a la table
// action