added "-" in profile editor

This commit is contained in:
Roland Gruber 2015-12-05 08:51:01 +00:00
parent 589847548b
commit 8c803f607a
1 changed files with 2 additions and 0 deletions

View File

@ -442,6 +442,8 @@ class puppetClient extends baseModule {
public function get_profileOptions() {
$return = parent::get_profileOptions();
$possibleParentNodes = $this->getPossibleParentNodes();
array_unshift($possibleParentNodes, '-');
$possibleParentNodes = array_values($possibleParentNodes);
if (sizeof($possibleParentNodes) > 0) {
$return->addElement(new htmlTableExtendedSelect('puppetClient_parentnode', $possibleParentNodes, array(), _('Parent node'), 'parentnode'), true);
}