Skip to content

Commit

Permalink
fix(requesttypefield): update interface
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed May 8, 2020
1 parent 9a511cd commit 679c4d9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions inc/fields/requesttypefield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ public function getValueForDesign() {
return $this->value;
}

public function hasInput($input) {
return isset($input['formcreator_field_' . $this->question->getID()]);
}

public function getValueForTargetText($richText) {
$available = $this->getAvailableValues();
return $available[$this->value];
Expand Down

0 comments on commit 679c4d9

Please sign in to comment.