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:
Sean Harvey 2012-05-14 15:00:57 +12:00
parent e95e751333
commit 18ab6d3933

View File

@ -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();