jenkins-bot has submitted this change and it was merged. ( 
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(-)

Approvals:
  Pwirth: Looks good to me, approved
  jenkins-bot: Verified



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: merged
Gerrit-Change-Id: I28e135f450dc0d2687b417b95e22679a8fccf5ff
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation
Gerrit-Branch: master
Gerrit-Owner: Nasty <[email protected]>
Gerrit-Reviewer: Pwirth <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to