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 {
}
function getValue() {
$value = $this->getField()->to_php(
$this->get('value'), $this->get('value_id'));
if (!$value && $this->getEntry()->getSource()) {
return $this->getEntry()->getField(
$this->getField()->get('name'))->getClean();
}
if (!$this->_value && isset($this->value))
$this->_value = $this->getField()->to_php(
$this->get('value'), $this->get('value_id'));
return $this->_value;
}
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