Index: /changelog
===================================================================
--- /changelog	(revision 7023)
+++ /changelog	(revision 7024)
@@ -115,2 +115,4 @@
 - Feature: Produktvarianten - Export von Produktname / Produktartikelnummer ÃŒber Exportprofile mÃ¶glich
 - Feature: Lagerbestand - Export vom Lagerbestand / Mindestlagerbestand ÃŒber Exportprofile mÃ¶glich
+- Feature: Aboprodukte - Export von Abo Startzeit, Abo Laufzeit, Abo Kosten VerlÃ€ngerung und Abo Dauer (Tage) ÃŒber Exportprofile mÃ¶glich
+- Feature: Kundenverwaltung - Suche nach Kundengruppen mÃ¶glich
Index: /model/wpsg_customer.class.php
===================================================================
--- /model/wpsg_customer.class.php	(revision 7023)
+++ /model/wpsg_customer.class.php	(revision 7024)
@@ -450,4 +450,13 @@
 		} // public function find($arQuery = array())
 		
+        public static function hasFilteR($arFilter = []) {
+
+            list($strQuerySELECT, $strQueryWHERE, $strQueryJOIN, $strQueryHAVING, $strQueryORDER) = self::getQueryParts($arFilter);
+            
+            if (wpsg_isSizedString($strQueryWHERE) || wpsg_isSizedString($strQueryHAVING)) return true;
+            else return false;
+		    
+        }
+        
 		public static function getQueryParts($arFilter = array())
 		{
@@ -471,4 +480,6 @@
 				
 			}
+			
+			if (wpsg_isSizedInt($arFilter['group_id'])) $strQueryWHERE .= " AND `group_id` = '".wpsg_q($arFilter['group_id'])."' ";
 
 			if (wpsg_isSizedString($arFilter['s']))
Index: /mods/wpsg_mod_customergroup.class.php
===================================================================
--- /mods/wpsg_mod_customergroup.class.php	(revision 7023)
+++ /mods/wpsg_mod_customergroup.class.php	(revision 7024)
@@ -96,4 +96,18 @@
 		/* Modulfunktionen */
 
+        /**
+         * Gibt einen Array mit [id] => Titel der Kundengruppen zurÃŒck
+         */
+        public function getCustomerGroupArray() {
+            
+            return $this->db->fetchAssocField("
+                SELECT
+                    `id`, `name`
+                FROM 
+                    `".WPSG_TBL_KG."`
+            ", "id", "name");
+            
+        } // public function getCustomerGroupArray()
+        
 		public function be_dispatch()
 		{
Index: /mods/wpsg_mod_kundenverwaltung.class.php
===================================================================
--- /mods/wpsg_mod_kundenverwaltung.class.php	(revision 7023)
+++ /mods/wpsg_mod_kundenverwaltung.class.php	(revision 7024)
@@ -2002,5 +2002,4 @@
 			if ($nPerPage <= 0) $nPerPage = 10;
 
-			$this->shop->view['hasFilter'] = false;
 			$this->shop->view['arFilter'] = array(
 				'order' => 'cdate',
@@ -2016,5 +2015,4 @@
 
 				$this->shop->view['arFilter'] = $_REQUEST['filter'];
-				$this->shop->view['hasFilter'] = true;
 
 			}
@@ -2023,7 +2021,9 @@
 
 				$this->shop->view['arFilter'] = $_SESSION['wpsg']['backend']['customer']['arFilter'];
-
-			}
-
+                
+			}
+
+            $this->shop->view['hasFilter'] = wpsg_customer::hasFilter($this->shop->view['arFilter']); 
+			
 			$this->shop->view['countAll'] = wpsg_customer::count($this->shop->view['arFilter']);
 
Index: /views/mods/mod_kundenverwaltung/index.phtml
===================================================================
--- /views/mods/mod_kundenverwaltung/index.phtml	(revision 7023)
+++ /views/mods/mod_kundenverwaltung/index.phtml	(revision 7024)
@@ -17,5 +17,5 @@
 				<ul class="nav navbar-nav">
 					<li role="presentation" class="<?php echo ((!isset($_REQUEST['action']))?'active':''); ?>"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Customer" onclick="return false;"><?php echo wpsg_translate(__("Kundenverwaltung (#1# Kunden)", "wpsg"), $this->view['countAll']); ?></a></li>
-					<li role="presentation" class="wpsg-customer-tab-a wpsg_showhide_filter <?php echo ((wpsg_isTrue($this->view['hasFilter']))?'activexxxx':''); ?>" id="wpsg-customer-tab-0"><a href="#" onclick="return false;"><span class="glyphicon glyphicon-search"></span><?php echo __("Suche", "wpsg"); ?></a></li>
+					<li role="presentation" class="wpsg-customer-tab-a wpsg_showhide_filter <?php echo ((wpsg_isTrue($this->view['hasFilter']))?'active':''); ?>" id="wpsg-customer-tab-0"><a href="#" onclick="return false;"><span class="glyphicon glyphicon-search"></span><?php echo __("Suche", "wpsg"); ?></a></li>
                     <li role="presentation" class="<?php echo ((wpsg_isSizedString($_REQUEST['action'], 'add'))?'active':''); ?>"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Customer&action=add"><span class="glyphicon glyphicon-plus"></span><?php echo __("HinzufÃŒgen", "wpsg"); ?></a></li>
                     
@@ -37,5 +37,5 @@
 		</div>
 
-        <div class="wpsg-filter wpsg-customer-tab wpsg-customer-tab-0 container-fluid form-horizontal" style="display:<?php echo ((wpsg_isTrue($this->view['hasFilter']))?'none':'none'); ?>;">
+        <div class="wpsg-filter wpsg-customer-tab wpsg-customer-tab-0 container-fluid form-horizontal" style="display:<?php echo ((wpsg_isTrue($this->view['hasFilter']))?'block':'none'); ?>;">
             <div class="row">
 				<div class="col-lg-4">
@@ -48,4 +48,10 @@
 
 						<?php echo wpsg_drawForm_Input('filter[s]', __('Suchfeld', 'wpsg'), wpsg_getStr($this->view['arFilter']['s'])); ?>
+                        
+                        <?php if ($this->hasMod('wpsg_mod_customergroup')) { ?>
+                        
+                            <?php echo wpsg_drawForm_Select('filter[group_id]', __('Kundengruppe', 'wpsg'), wpsg_array_merge([0 => __('Alle Kundengruppen', 'wpsg')], $this->callMod('wpsg_mod_customergroup', 'getCustomerGroupArray')), wpsg_getStr($this->view['arFilter']['group_id'])); ?>
+                            
+                        <?php } ?>
 
 						<?php echo wpsg_drawForm_SubmitButton(__('Kunden suchen')); ?><br />
