Merge branch 'develop'

This commit is contained in:
Loïc d'Anterroches 2010-12-23 17:26:53 +01:00
commit 7059150ac8

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;
} }
} }