Commit bfe9e37e authored by Côme Bernigaud's avatar Côme Bernigaud Committed by Benoit Mortier
Browse files

Fixes: #2064 the name of the product is not right in opsi products selections in the profile

parent 4dbb6aa5
......@@ -133,13 +133,11 @@ class opsiSoftwareList extends simplePlugin
}
$this->products[$this->fdOpsiServerDN]['localboots'] = $localboots;
}
$choices_values = array();
$choices_labels = array();
$choices = array();
foreach ($this->products[$this->fdOpsiServerDN]['localboots'] as $localboot) {
$choices_values[] = $localboot['id'];
$choices_labels[] = $localboot['name'];
$choices[] = $localboot['id'];
}
$this->attributesAccess['fdOpsiLocalbootProduct']->attribute->attributes[0]->setChoices($choices_values, $choices_labels);
$this->attributesAccess['fdOpsiLocalbootProduct']->attribute->attributes[0]->setChoices($choices);
}
}
?>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment