Nasty has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/338105 )
Change subject: fixed new entities not getting saved
......................................................................
fixed new entities not getting saved
Change-Id: I28e135f450dc0d2687b417b95e22679a8fccf5ff
---
M includes/Entity.php
1 file changed, 3 insertions(+), 3 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceFoundation
refs/changes/05/338105/1
diff --git a/includes/Entity.php b/includes/Entity.php
index aa78320..9f0e9aa 100644
--- a/includes/Entity.php
+++ b/includes/Entity.php
@@ -239,8 +239,8 @@
if( !$oUser instanceof User ) {
return Status::newFatal( 'No User' );
}
- if( !$this->hasUnsavedChanges() ) {
- return Status::newGood('success');
+ if( $this->exists() && !$this->hasUnsavedChanges() ) {
+ return Status::newGood( $this );
}
if( empty($this->getID()) ) {
$this->generateID();
@@ -512,4 +512,4 @@
static::detachCache( $this );
return $this;
}
-}
\ No newline at end of file
+}
--
To view, visit https://gerrit.wikimedia.org/r/338105
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I28e135f450dc0d2687b417b95e22679a8fccf5ff
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation
Gerrit-Branch: master
Gerrit-Owner: Nasty <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits