From aad4c93b78f9537a60a0bb6e1a374d74cfc52e63 Mon Sep 17 00:00:00 2001
From: JediKev <kevin@enhancesoft.com>
Date: Fri, 22 Feb 2019 09:15:20 -0600
Subject: [PATCH] issue: Custom Column Org Link

This addresses issue 4579 where setting a Custom Column to User Organization
and choosing the User Org Link filter the system shows the wrong link to the
Org. This is due to "scp/" not being added to the URL therefore showing an
invalid link.
---
 include/class.organization.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/class.organization.php b/include/class.organization.php
index 6d9fc030c..179aa2c15 100644
--- a/include/class.organization.php
+++ b/include/class.organization.php
@@ -489,7 +489,7 @@ implements TemplateVariable, Searchable {
         if (!$id || !$thisstaff)
             return false;
 
-        return ROOT_PATH . sprintf('orgs.php?id=%s', $id);
+        return ROOT_PATH . sprintf('scp/orgs.php?id=%s', $id);
     }
 
     static function fromVars($vars) {
-- 
GitLab