Improve DE_JobTerms
authorRaphaël Barrois <raphael.barrois@polytechnique.org>
Tue, 31 May 2011 19:39:23 +0000 (21:39 +0200)
committerRaphaël Barrois <raphael.barrois@polytechnique.org>
Tue, 9 Aug 2011 22:40:46 +0000 (00:40 +0200)
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
classes/direnum.php

index 8a3829d..9d9a163 100644 (file)
@@ -654,6 +654,10 @@ class DE_JobDescription extends DirEnumeration
 // {{{ class DE_JobTerms
 class DE_JobTerms extends DirEnumeration
 {
+    protected $valfield = 'profile_job_term_enum.name';
+    protected $from = 'profile_job_term_enum';
+    protected $idfield = 'profile_job_term_enum.jtid';
+
     // {{{ function getAutoComplete
     public function getAutoComplete($text)
     {