Allow overriding all metadata fields, including custom fields
This commit is contained in:
parent
9c17b6d5db
commit
15d0dc0ca8
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user