Commit 9d88945d authored by Dries's avatar Dries

Issue #1970110 by yched | andypost: should ConfigEntity::isNew() be based on id or uuid.

parent 27c5c693
...@@ -68,8 +68,7 @@ public function setOriginalID($id) { ...@@ -68,8 +68,7 @@ public function setOriginalID($id) {
* configuration entity is unique. * configuration entity is unique.
*/ */
public function isNew() { public function isNew() {
// Configuration entity IDs are strings, and '0' is a valid ID. return !empty($this->enforceIsNew);
return !empty($this->enforceIsNew) || $this->id() === NULL || $this->id() === '';
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment