mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-12-04 05:13:34 +00:00
do not get color if not category is selected
This commit is contained in:
parent
b3ad7f54fb
commit
3be9cef85c
|
|
@ -118,7 +118,7 @@ $(document).ready( function() {
|
|||
'value'=>($category ? htmlspecialchars($category->getName()) : '')
|
||||
)
|
||||
);
|
||||
$color = ($category && $category->getColor()) ? $category->getColor() : substr(md5($category->getName()), 0, 6);
|
||||
$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