Fixed bug in group join/joinrequest code

Signed-off-by: Gergely Polonkai <polesz@w00d5t0ck.info>
This commit is contained in:
Polonkai Gergely 2012-08-16 10:18:28 +02:00
parent 111c563409
commit e8d018d663
2 changed files with 1 additions and 2 deletions

View File

@ -89,7 +89,7 @@ class GroupController extends Controller
);
}
$membership = new UserGroupMembership();
$membership = new UserGroupMembership($user, $group);
$membership->setUser($user);
$membership->setGroup($group);
$membership->setMembershipRequestedAt(new \DateTime('now'));

View File

@ -20,7 +20,6 @@ class UserGroupMembership
$this->setUser($user);
$this->setGroup($group);
$this->setMembershipRequestedAt(new \DateTime('now'));
$this->setMembershipAcceptedAt(new \DateTime('now'));
}
/**