Skip to content

Commit

Permalink
Merge pull request #11478 from creative-commoners/pulls/6/broken-builds
Browse files Browse the repository at this point in the history
FIX Do not mark changed when setting value in constructor
  • Loading branch information
GuySartorelli authored Nov 26, 2024
2 parents 26d5b11 + cdda1b8 commit c651007
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/ORM/DataObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ public function classDescription(): ?string
public function i18n_classDescription(): ?string
{
$notDefined = 'NOT_DEFINED';
$description = _t(static::class.'.CLASS_DESCRIPTION', $this->classDescription() ?? $notDefined);
$description = _t(static::class . '.CLASS_DESCRIPTION', $this->classDescription() ?? $notDefined);
if ($description === $notDefined) {
return null;
}
Expand Down
2 changes: 1 addition & 1 deletion src/ORM/FieldType/DBField.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public function __construct(?string $name = null, array $options = [])
}
// Setting value needs to happen below the call to setOptions() in case the default value is set there
$value = $this->getDefaultValue();
$this->setValue($value);
$this->setValue($value, markChanged: false);

parent::__construct();
}
Expand Down

0 comments on commit c651007

Please sign in to comment.