do not get color if not category is selected

This commit is contained in:
Uwe Steinmann 2024-01-24 11:56:40 +01:00
parent bf41d32581
commit eca347d085

View File

@ -120,6 +120,7 @@ $(document).ready( function() {
'value'=>($category ? htmlspecialchars($category->getName()) : '')
)
);
$color = $category ? ($category->getColor() ? $category->getColor() : substr(md5($category->getName()), 0, 6)) : 'ffffff';
$this->formField(
getMLText("color"),
array(