Skip to content

Commit

Permalink
Don't offer group/lists/property search attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Feb 9, 2019
1 parent 34aafa7 commit dbd8f2b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/custom/src/MShop/Customer/Manager/FosUser.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ public function __construct( \Aimeos\MShop\Context\Item\Iface $context )
public function cleanup( array $siteids )
{
$path = 'mshop/customer/manager/submanagers';
$default = ['address', 'group', 'lists', 'property'];
$default = ['address', 'lists', 'property'];

foreach( $this->getContext()->getConfig()->get( $path, $default ) as $domain ) {
$this->getObject()->getSubManager( $domain )->cleanup( $siteids );
Expand Down Expand Up @@ -346,9 +346,7 @@ public function deleteItems( array $ids )
public function getSearchAttributes( $withsub = true )
{
$path = 'mshop/customer/manager/submanagers';
$default = ['address', 'group', 'lists', 'property'];

return $this->getSearchAttributesBase( $this->searchConfig, $path, $default, $withsub );
return $this->getSearchAttributesBase( $this->searchConfig, $path, ['address'], $withsub );
}


Expand Down

0 comments on commit dbd8f2b

Please sign in to comment.