Skip to content
Snippets Groups Projects
Commit 8f931c88 authored by Jared Hancock's avatar Jared Hancock
Browse files

oops: Partially revert e5d61922

The real bug was setting the source of the ticket form — not the fallback to
the form entry source.  Falling back breaks edits.
parent b0fa4269
No related branches found
No related tags found
No related merge requests found
...@@ -1011,12 +1011,10 @@ class DynamicFormEntryAnswer extends VerySimpleModel { ...@@ -1011,12 +1011,10 @@ class DynamicFormEntryAnswer extends VerySimpleModel {
} }
function getValue() { function getValue() {
$value = $this->getField()->to_php( if (!$this->_value && isset($this->value))
$this->get('value'), $this->get('value_id')); $this->_value = $this->getField()->to_php(
if (!$value && $this->getEntry()->getSource()) { $this->get('value'), $this->get('value_id'));
return $this->getEntry()->getField( return $this->_value;
$this->getField()->get('name'))->getClean();
}
} }
function getIdValue() { function getIdValue() {
......
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