Skip to content

Commit

Permalink
Fix edge-case with Filter expression
Browse files Browse the repository at this point in the history
Support "value" and "values"
  • Loading branch information
mcaskill committed Oct 31, 2019
1 parent 1465809 commit 99a4d23
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Charcoal/Source/Filter.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,10 @@ public function setData(array $data)
$this->setValue($data['value']);
}

if (isset($data['values'])) {
$this->setValue($data['values']);
}

if (isset($data['function'])) {
$this->setFunc($data['function']);
}
Expand Down

0 comments on commit 99a4d23

Please sign in to comment.