Skip to content

Commit

Permalink
Fixed Storage::applyFilter to correctly filter attributes with non-nu…
Browse files Browse the repository at this point in the history
…ll default values.
  • Loading branch information
itsgoingd committed Sep 24, 2013
1 parent 7ac1a72 commit 394fc47
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Clockwork/Storage/Storage.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,11 @@ abstract public function store(Request $request);
*/
protected function applyFilter(array $data)
{
$emptyRequest = new Request(array());

foreach ($this->filter as $key) {
if (isset($data[$key])) {
$data[$key] = null;
$data[$key] = $emptyRequest->$key;
}
}

Expand Down

0 comments on commit 394fc47

Please sign in to comment.