From c4738d458568fb228ba819c31d2fb41e422b3403 Mon Sep 17 00:00:00 2001
From: Peter Rotich <peter@osticket.com>
Date: Fri, 22 Apr 2016 16:06:22 +0000
Subject: [PATCH] org: Remove users from deleted org.

Use org_id to filter users to update on organization delete
---
 include/staff/ticket-view.inc.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/staff/ticket-view.inc.php b/include/staff/ticket-view.inc.php
index c634971b3..36c1d34ef 100644
--- a/include/staff/ticket-view.inc.php
+++ b/include/staff/ticket-view.inc.php
@@ -309,7 +309,7 @@ if($ticket->isOverdue())
                         <span id="user-<?php echo $ticket->getOwnerId(); ?>-email"><?php echo $ticket->getEmail(); ?></span>
                     </td>
                 </tr>
-<?php   if ($user->getOrgId()) { ?>
+<?php   if ($user->getOrganization()) { ?>
                 <tr>
                     <th><?php echo __('Organization'); ?>:</th>
                     <td><i class="icon-building"></i>
-- 
GitLab