Explorar o código

Fixed recent regression on the portal (confusion btw GetContactId and GetUserId)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1586 a333f486-631f-4898-b8df-5754b55c2be0
romainq %!s(int64=13) %!d(string=hai) anos
pai
achega
09a7ef4c50
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      portal/index.php

+ 3 - 3
portal/index.php

@@ -431,7 +431,7 @@ function ListOpenRequests(WebPage $oP)
 
 	$sOQL = 'SELECT UserRequest WHERE org_id = :org_id AND status NOT IN ("closed")';
 	$oSearch = DBObjectSearch::FromOQL($sOQL);
-	$iUser = UserRights::GetUserId();
+	$iUser = UserRights::GetContactId();
 	if ($iUser > 0)
 	{
 		$oSearch->AddCondition('caller_id', $iUser);
@@ -452,7 +452,7 @@ function ListResolvedRequests(WebPage $oP)
 
 	$sOQL = 'SELECT UserRequest WHERE org_id = :org_id AND status = "resolved"';
 	$oSearch = DBObjectSearch::FromOQL($sOQL);
-	$iUser = UserRights::GetUserId();
+	$iUser = UserRights::GetContactId();
 	if ($iUser > 0)
 	{
 		$oSearch->AddCondition('caller_id', $iUser);
@@ -484,7 +484,7 @@ function ListClosedTickets(WebPage $oP)
 	}
 	$oSearch->AddCondition('org_id', $oUserOrg->GetKey());
 	$oSearch->AddCondition('status', 'closed');
-	$iUser = UserRights::GetUserId();
+	$iUser = UserRights::GetContactId();
 	if ($iUser > 0)
 	{
 		$oSearch->AddCondition('caller_id', $iUser);