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--');