From 01c4f10b5d3ddf02d45df590b51b6153281e7b59 Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Sat, 31 Jul 2010 21:25:10 +0000 Subject: [PATCH] Fix problem with card detail order --- html/admin/sql/patch/upgrade87.sql | 15 +++++++++++++++ include/class_fiche.php | 2 +- include/constant.php | 2 +- 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 html/admin/sql/patch/upgrade87.sql diff --git a/html/admin/sql/patch/upgrade87.sql b/html/admin/sql/patch/upgrade87.sql new file mode 100644 index 000000000..79368f904 --- /dev/null +++ b/html/admin/sql/patch/upgrade87.sql @@ -0,0 +1,15 @@ +BEGIN; +select comptaproc.fiche_attribut_synchro(fd_id) from fiche_def; + +DROP TRIGGER t_jnt_fic_attr_ins ON jnt_fic_attr; + +CREATE TRIGGER t_jnt_fic_attr_ins + after INSERT + ON jnt_fic_attr + FOR EACH ROW + EXECUTE PROCEDURE comptaproc.jnt_fic_attr_ins(); + +UPDATE VERSION SET VAL=88; + + +COMMIT; diff --git a/include/class_fiche.php b/include/class_fiche.php index 857a1a2eb..ecf6fde92 100644 --- a/include/class_fiche.php +++ b/include/class_fiche.php @@ -923,7 +923,7 @@ av_text1=>'name' */ function Get() { - fiche::getAttribut(); + $this->getAttribut(); } /*!\brief get all the card thanks the fiche_def_ref * \param $p_offset (default =-1) diff --git a/include/constant.php b/include/constant.php index e113801c8..4c3e0eeae 100644 --- a/include/constant.php +++ b/include/constant.php @@ -32,7 +32,7 @@ $version_phpcompta=9000; error_reporting (E_ALL|E_STRICT); //$version_phpcompta=SVNVERSION; -define ("DBVERSION",87); +define ("DBVERSION",88); define ("DBVERSIONREPO",12); define ('NOTFOUND','--not found--');