Skip to content

Commit

Permalink
Bugfix keepVersions - consider null/empty strings vs 0
Browse files Browse the repository at this point in the history
  • Loading branch information
ctippler committed Feb 17, 2020
1 parent 1a46a35 commit 7950279
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Model/Configuration/Dao.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ public function delete()
public function save()
{
$data = $this->getValidStorageValues();
if($data['keepVersions'] === ''){
$data['keepVersions'] = null;
}
if (!$data['id']) {
unset($data['id']);
$this->db->insert($this->getTableName(), $data);
Expand Down

0 comments on commit 7950279

Please sign in to comment.