Fixed apparence of the description of the labels for the default ticket labels.

This commit is contained in:
Loïc d'Anterroches 2010-12-23 17:26:34 +01:00
parent 97bc383bc0
commit 777937b70c

View File

@ -121,14 +121,16 @@ class IDF_Form_IssueCreate extends Pluf_Form
$predefined_type = 'Type:Defect'; $predefined_type = 'Type:Defect';
foreach ($predefined as $tag) { foreach ($predefined as $tag) {
if (strpos($tag, 'Type:') === 0) { if (strpos($tag, 'Type:') === 0) {
$predefined_type = $tag; $predefined_type = explode('=', $tag, 2);
$predefined_type = trim($predefined_type[0]);
break; break;
} }
} }
$predefined_priority = 'Priority:Medium'; $predefined_priority = 'Priority:Medium';
foreach ($predefined as $tag) { foreach ($predefined as $tag) {
if (strpos($tag, 'Priority:') === 0) { if (strpos($tag, 'Priority:') === 0) {
$predefined_priority = $tag; $predefined_priority = explode('=', $tag, 2);
$predefined_priority = trim($predefined_priority[0]);
break; break;
} }
} }