Skip to content
Snippets Groups Projects
Commit 08761028 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #659 from greezybacon/issue/652


forms: Better failsafe for __toString

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents b26f99e8 070cb4bf
No related branches found
No related tags found
No related merge requests found
......@@ -729,7 +729,8 @@ class DynamicFormEntryAnswer extends VerySimpleModel {
}
function __toString() {
return $this->toString();
$v = $this->toString();
return is_string($v) ? $v : (string) $this->getValue();
}
}
......
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