Skip to content

Commit

Permalink
Fixed #2597
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Mar 21, 2018
1 parent e9da0ed commit 2c78069
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
- Fixed a bug where Color fields’ color previews weren’t showing the selected color in element indexes and entry versions. ([#2587](https://github.com/craftcms/cms/issues/2587))
- Fixed a bug where datepickers weren’t visible in Live Preview. ([#2591](https://github.com/craftcms/cms/issues/2591))
- Fixed a bug where fields’ Translation Method settings weren’t listing “Translate for each site group” as an option after changing the field type, until the field was saved and re-edited. ([#2602](https://github.com/craftcms/cms/issues/2602))
- Fixed an error that occurred when attempting to set a value on a newly-created field within a content migration. ([#2597](https://github.com/craftcms/cms/issues/2597))

## 3.0.0-RC15 - 2018-03-13

Expand Down
11 changes: 11 additions & 0 deletions src/behaviors/ContentBehavior.php.template
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,15 @@ class ContentBehavior extends Behavior
}
parent::__set($name, $value);
}

/**
* @inheritdoc
*/
public function canSetProperty($name, $checkVars = true)
{
if (isset(self::$fieldHandles[$name])) {
return true;
}
return parent::canSetProperty($name, $checkVars);
}
}

0 comments on commit 2c78069

Please sign in to comment.