mirror of
https://github.com/silverstripe/silverstripe-multiform
synced 2024-10-22 11:05:49 +02:00
BUGFIX Use Member::currentUser() instead of Member::currentMember() which isn't available in both SS 2.4 and 3.0
This commit is contained in:
parent
e95e751333
commit
18ab6d3933
@ -42,7 +42,7 @@ class MultiFormSession extends DataObject {
|
||||
*/
|
||||
public function onBeforeWrite() {
|
||||
// save submitter if a Member is logged in
|
||||
$currentMember = Member::currentMember();
|
||||
$currentMember = Member::currentUser();
|
||||
if(!$this->SubmitterID && $currentMember) $this->SubmitterID = $currentMember->ID;
|
||||
|
||||
parent::onBeforeWrite();
|
||||
|
Loading…
Reference in New Issue
Block a user