diff --git a/include/class.forms.php b/include/class.forms.php
index e13d73f9cea6c886ff2db38b0ca5d769810e1f96..0fc575637fb65985892316196c8697f55e15211e 100644
--- a/include/class.forms.php
+++ b/include/class.forms.php
@@ -2273,6 +2273,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');