mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 20:51:30 +00:00
do not show filter for categories if none exist
This commit is contained in:
parent
0aedf55ec6
commit
929129abac
|
@ -610,6 +610,7 @@ $(document).ready(function() {
|
||||||
$tmpcatids[] = $tmpcat->getID();
|
$tmpcatids[] = $tmpcat->getID();
|
||||||
$options = array();
|
$options = array();
|
||||||
$allcategories = $dms->getDocumentCategories();
|
$allcategories = $dms->getDocumentCategories();
|
||||||
|
if($allcategories) {
|
||||||
foreach($allcategories as $acategory) {
|
foreach($allcategories as $acategory) {
|
||||||
$options[] = array($acategory->getID(), $acategory->getName(), in_array($acategory->getId(), $tmpcatids));
|
$options[] = array($acategory->getID(), $acategory->getName(), in_array($acategory->getId(), $tmpcatids));
|
||||||
}
|
}
|
||||||
|
@ -624,6 +625,7 @@ $(document).ready(function() {
|
||||||
'options'=>$options
|
'options'=>$options
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
}
|
||||||
$options = array();
|
$options = array();
|
||||||
if($workflowmode == 'traditional' || $workflowmode == 'traditional_only_approval') {
|
if($workflowmode == 'traditional' || $workflowmode == 'traditional_only_approval') {
|
||||||
if($workflowmode == 'traditional') {
|
if($workflowmode == 'traditional') {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user