mirror of
https://git.code.sf.net/p/seeddms/code
synced 2026-05-10 06:44:52 +00:00
do not get color if not category is selected
This commit is contained in:
parent
bf41d32581
commit
eca347d085
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user