Skip to content

Commit 6eed9eb

Browse files
committed
fix unsafe attributes when init
1 parent b95f0fa commit 6eed9eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

EmbedsOneBehavior.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ protected function setAttributes(array $attributes, $safeOnly = true)
2323
public function getStorage()
2424
{
2525
if (empty($this->_storage)) {
26-
$this->_storage = $this->createEmbedded((array)$this->owner->{$this->attribute});
26+
$this->_storage = $this->createEmbedded((array)$this->owner->{$this->attribute}, false);
2727
$this->_storage->formName = Html::getInputName($this->owner, $this->fakeAttribute);
2828
}
2929
return $this->_storage;

0 commit comments

Comments
 (0)