Skip to content
Snippets Groups Projects
Commit 2433b8f9 authored by JediKev's avatar JediKev
Browse files

issue: Priority Field Template Variable

This addresses an issue with PriorityField Template Variables introduced
with 4359 where the priority variable will appear as "Array" instead of the
actual value. This adds an `asVar()` function to `class PriorityField` to
get the appropriate data.
parent ad45e426
No related branches found
No related tags found
No related merge requests found
......@@ -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');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment