diff --git a/include/class.forms.php b/include/class.forms.php
index ae165e085ceeeb8331ca2ae73c3211a608b3f27e..1c5700b5278a7e1c27bdd446481e0869e9959e37 100644
--- a/include/class.forms.php
+++ b/include/class.forms.php
@@ -2603,6 +2603,10 @@ class PriorityField extends ChoiceField {
         return ($value instanceof Priority) ? array($value->getId()) : null;
     }
 
+    function asVar($value, $id=false) {
+        return $this->to_php($value, $id);
+    }
+
     function getConfigurationOptions() {
         $choices = $this->getChoices();
         $choices[''] = __('System Default');