Skip to content

Commit

Permalink
oprava chyby při změně personID
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Staněk committed Nov 3, 2016
1 parent 8546473 commit 592dfc1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/forms/AttendeeForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ public function __construct(IContainer $parent = NULL, $name = NULL, $translator

$checkRolesCapacity = function($field, $database) {
$values = $this->getComponent('roles')->getRawValue();
$user = $database->getRepository('\SRS\Model\User')->findOneBy(array('id' => $this->getForm()->getHttpData()['id']));

foreach ($values as $value) {
$role = $database->getRepository('\SRS\Model\Acl\Role')->findOneBy(array('id' => $value));
Expand Down
2 changes: 2 additions & 0 deletions app/model/Authenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ public function authenticate(array $credentials)
$user->securityCode = $skautISUser->SecurityCode;
/*----------------------------------------------------------------------*/

$user->skautISPersonId = $skautISUser->ID_Person;

$this->database->flush();

$netteRoles = array();
Expand Down

0 comments on commit 592dfc1

Please sign in to comment.