From 20c876f37798d6dd92f8c0fffe16a3071fb0307b Mon Sep 17 00:00:00 2001
From: JediKev <kevin@enhancesoft.com>
Date: Thu, 31 Jan 2019 15:11:55 -0600
Subject: [PATCH] issue: Remove Referral Borked

This addresses an issue where removing a Referral from the Manage Referrals
modal just loads and loads, never actually removing the referral. This is
due to the AJAX URL containing an extra `/` causing an "Unsupported URL"
error.
---
 include/staff/templates/refer.tmpl.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/staff/templates/refer.tmpl.php b/include/staff/templates/refer.tmpl.php
index 6a2d991e5..90ca98010 100644
--- a/include/staff/templates/refer.tmpl.php
+++ b/include/staff/templates/refer.tmpl.php
@@ -77,7 +77,7 @@ $manage = (!$target);
    <form class="mass-action" method="post"
     name="referrals"
     id="rf"
-    action="<?php echo sprintf('#/tickets/%d/referrals', $ticket->getId()); ?>">
+    action="<?php echo sprintf('#tickets/%d/referrals', $ticket->getId()); ?>">
      <input type='hidden' name='do' value='manage'>
     <table width="100%">
         <tbody>
-- 
GitLab