Merge branch '3.4' into 3

This commit is contained in:
Daniel Hensby 2016-09-16 11:56:01 +01:00
commit beeed8155a
No known key found for this signature in database
GPG Key ID: B00D1E9767F0B06E
2 changed files with 3 additions and 2 deletions

View File

@ -1081,7 +1081,7 @@ jQuery.noConflict();
this._super();
},
onremove: function() {
if(this.data('button')) this.button('destroy');
if(!this.data('button')) this.button('destroy');
this._super();
}
});

View File

@ -841,8 +841,9 @@ class Member extends DataObject implements TemplateGlobalProvider {
$id = Member::currentUserID();
if($id) {
return Member::get()->byId($id);
return DataObject::get_by_id('Member', $id);
}
return null;
}
/**