#PHRAS-527 #time 3h

fix : in admin/users, applying a filter on "Applied user template" is ok
This commit is contained in:
Jean-Yves Gaulier
2015-08-27 11:45:00 +02:00
parent f4825c67db
commit c359721235
2 changed files with 3 additions and 3 deletions

View File

@@ -103,13 +103,13 @@ class User_Query implements User_QueryInterface
/**
* Restrict user with the provided last model
*
* @param User|string|null $login
* @param User|int|null $login
*
* @return $this
*/
public function last_model_is($login = null)
{
$this->last_model = $login instanceof User ? $login->getLogin() : $login;
$this->last_model = $login instanceof User ? $login->getId() : $login;
return $this;
}