Index: /changelog
===================================================================
--- /changelog	(revision 6825)
+++ /changelog	(revision 6826)
@@ -65,4 +65,5 @@
 #4.0.4
 - Bugfix - Cross Site Scripting 
-
+ 
 #4.0.5
+- Bugfix - Filter in Bestellverwaltung bleibt offen, wenn Bestellungen gefiltert
Index: /controller/wpsg_OrderController.class.php
===================================================================
--- /controller/wpsg_OrderController.class.php	(revision 6825)
+++ /controller/wpsg_OrderController.class.php	(revision 6826)
@@ -1291,7 +1291,5 @@
 			{
 
-				$this->shop->view['hasFilter'] = true;
 				$this->shop->view['arFilter'] = $_REQUEST['filter'];
-				//unset($_REQUEST['filter']);
 				
 			}
@@ -1305,4 +1303,13 @@
 			if (!isset($this->shop->view['arFilter']['status'])) $this->shop->view['arFilter']['status'] = '0';
 
+            // Filter gesetzt?
+            foreach (Array('s', 'k_id', 'cdate_m', 'cdate_y', 'invoicedate_m', 'invoicedate_y') as $field)
+            {
+                
+                if (wpsg_isSizedString($this->shop->view['arFilter'][$field]) && $this->shop->view['arFilter'][$field] != '-1') { $this->shop->view['hasFilter'] = true; break; }
+                
+            }
+            
+            
 			foreach ($this->shop->arStatus as $status_key => $status_label)
 			{
Index: /views/order/index.phtml
===================================================================
--- /views/order/index.phtml	(revision 6825)
+++ /views/order/index.phtml	(revision 6826)
@@ -88,5 +88,7 @@
                         <?php echo wpsg_drawForm_TextEnd(__('Rechnungsdatum (Monat/Jahr)', 'wpsg'), array('noP' => true)); ?>
 
-    					<br /><?php echo wpsg_drawForm_SubmitButton(__('Bestellungen suchen')); ?>
+    					<br />
+                        
+                        <?php echo wpsg_drawForm_SubmitButton(__('Bestellungen suchen')); ?>
 
 					</form>
