From 15d0dc0ca8d61c3b67a85703bc92b2173e401462 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 4 Oct 2017 11:42:30 -0400 Subject: [PATCH] Allow overriding all metadata fields, including custom fields --- redirect.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/redirect.php b/redirect.php index 05c1084..05b3788 100755 --- a/redirect.php +++ b/redirect.php @@ -16,7 +16,7 @@ $params = array( 'url' => 'https://hq.megaphonetech.com', 'key' => '4kaq0ZLsWDndWEKN8O3D', 'unknown-user' => 'create', - 'allow-override' => 'tracker,priority,category,status,project,assigned_to,start_date,due_date,estimated_hours,done_ratio', + 'allow-override' => 'all', 'project' => 'catch', 'tracker' => 'general', ); @@ -46,7 +46,7 @@ while (!feof($fd)) { //Alter the Subject if this is a test. $subjectAlterTo = substr($deliveredTo, 1, 12); - if(substr($deliveredTo, 1, 12) == 'support-test' && + if(substr($deliveredTo, 1, 15) == 'support_mt_test' && preg_match("/^Subject:(.*)/i", $line)) { $line = $subject = str_replace('Subject: ', 'Subject: [TEST] ', $line); }