Skip to content

Commit 5bb5b32

Browse files
authored
Update UsersInviteController.php
1 parent e7bfdb8 commit 5bb5b32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Api/Controllers/UsersInviteController.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ public function insertInvite() : Response
121121
//Save data to users_invite table and generate a hash for the invite
122122
$userInvite = $this->model;
123123
$userInvite->companies_id = $this->userData->getDefaultCompany()->getId();
124-
$userInvite->companies_branches_id = $request['companies_branches_id'] ?? 0;
124+
$userInvite->companies_branches_id = (int) $request['companies_branches_id'] ?? 0;
125125
$userInvite->users_id = $this->userData->getId();
126126
$userInvite->apps_id = $this->app->getId();
127127
$userInvite->role_id = (int) Roles::existsById((int)$request['role_id'])->id;

0 commit comments

Comments
 (0)