Skip to content

Commit

Permalink
Fix missing owner when saving drafts, fixes #19
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-lenz committed May 2, 2018
1 parent f47d7d3 commit 280091a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/fields/LinkField.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ function ($key) {

// Finally, if it is an array it is a serialized value
} elseif (is_array($value)) {
$attr = $value;
$attr = [
'owner' => $element,
] + $value;
}

if (isset($attr['type']) && !$this->isAllowedLinkType($attr['type'])) {
Expand Down

0 comments on commit 280091a

Please sign in to comment.