diff --git a/htdocs/opensurvey/class/opensurveysondage.class.php b/htdocs/opensurvey/class/opensurveysondage.class.php
index 92dfdd5468502f09589978282c190b0b1b91867e..e67591ffa613cc8257d639ec7561fa9a011d16df 100644
--- a/htdocs/opensurvey/class/opensurveysondage.class.php
+++ b/htdocs/opensurvey/class/opensurveysondage.class.php
@@ -202,6 +202,9 @@ class Opensurveysondage extends CommonObject
                 $obj = $this->db->fetch_object($resql);
 
 				$this->id_sondage = $obj->id_sondage;
+				//For compatibility
+				$this->ref = $this->id_sondage;
+				
 				$this->commentaires = $obj->commentaires;
 				$this->mail_admin = $obj->mail_admin;
 				$this->nom_admin = $obj->nom_admin;