mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge branch '3.4' into 3
This commit is contained in:
commit
beeed8155a
@ -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();
|
||||
}
|
||||
});
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user