Skip to content

Commit

Permalink
Merge pull request #1308 from ezsystems/ezee-3052-id-as-str-from-form
Browse files Browse the repository at this point in the history
EZEE-3052: Casted string id from form to int
  • Loading branch information
lserwatka authored Mar 23, 2020
2 parents 7e0d2c2 + 87dfda0 commit abb3e3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/Form/DataTransformer/UserTransformer.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function reverseTransform($value): ?User
}

try {
return $this->userService->loadUser($value);
return $this->userService->loadUser((int)$value);
} catch (NotFoundException $e) {
throw new TransformationFailedException($e->getMessage(), $e->getCode(), $e);
}
Expand Down

0 comments on commit abb3e3f

Please # to comment.