* Fix bug #49898, remove tag group for repo branch create page.
This commit is contained in:
@@ -1780,6 +1780,9 @@ class repoZen extends repo
|
||||
|
||||
$tags = $scm->tags();
|
||||
foreach($tags as $tag) $options[1]['items'][] = array('text' => $tag, 'value' => $tag, 'key' => $tag);
|
||||
|
||||
if(empty($tags)) unset($options[1]);
|
||||
if(empty($branches)) unset($options[0]);
|
||||
return $options;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user