mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 13:18:06 +00:00 
			
		
		
		
	do not show the task menu at all, if there are no tasks
This commit is contained in:
		
							parent
							
								
									f440d8bf54
								
							
						
					
					
						commit
						78aab08ebd
					
				|  | @ -300,7 +300,7 @@ class SeedDMS_View_Tasks extends SeedDMS_Bootstrap_Style { | |||
| 			$ct[] = count($tasks['checkedout']); | ||||
| 		$content .= implode('/', $ct); | ||||
| 		$content .= ")"; | ||||
| 		if(!empty($tasks['review']) || !empty($tasks['approval']) || !empty($tasks['receipt']) || !empty($tasks['revision']) || !empty($tasks['needscorrection']) || !empty($tasks['workflow']) || !empty($tasks['rejected']) || !empty($tasks['rejected'])) { | ||||
| 		if(!empty($tasks['review']) || !empty($tasks['approval']) || !empty($tasks['receipt']) || !empty($tasks['revision']) || !empty($tasks['needscorrection']) || !empty($tasks['workflow']) || !empty($tasks['rejected']) || !empty($tasks['rejected']) || !empty($tasks['checkedout'])) { | ||||
| 		$content .= " <i class=\"fa fa-caret-down\"></i></a>\n"; | ||||
| 		$content .= "     <ul class=\"dropdown-menu\" role=\"menu\">\n"; | ||||
| 		if(!empty($tasks['review'])) { | ||||
|  | @ -391,11 +391,11 @@ class SeedDMS_View_Tasks extends SeedDMS_Bootstrap_Style { | |||
| 		$content .= "       </ul>\n"; | ||||
| 		$content .= "      </li>\n"; | ||||
| 		} | ||||
| 		} | ||||
| 		if ($accessobject->check_view_access('MyDocuments')) { | ||||
| 			$content .= "    <li class=\"divider\"></li>\n"; | ||||
| 			$content .= "    <li><a href=\"../out/out.MyDocuments.php\">".getMLText("my_documents")."</a></li>\n"; | ||||
| 		} | ||||
| 		} | ||||
| 		$content .= "    </li>\n"; | ||||
| 		$content .= "   </ul>\n"; | ||||
| 		echo $content; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann