Skip to content

Commit

Permalink
Merge pull request #6803 from rossriley/hotfix/emptying-repeaters-tem…
Browse files Browse the repository at this point in the history
…platefields

Always reset null templatefields to an empty array instead
  • Loading branch information
GwendolenLynch committed Jul 9, 2017
2 parents e4b570c + 60c255f commit 8cc93fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Storage/Entity/Content.php
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,9 @@ public function getTemplatefields()

public function setTemplatefields($value)
{
if ($value === null) {
$value = [];
}
$this->templatefields = $value;
}

Expand Down

0 comments on commit 8cc93fc

Please sign in to comment.