Skip to content

Commit

Permalink
Do not display name on customer discounts grid
Browse files Browse the repository at this point in the history
  • Loading branch information
sowbiba committed Sep 14, 2020
1 parent f6389b6 commit d4d9dd4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion classes/helper/HelperForm.php
Expand Up @@ -25,7 +25,7 @@
*/
use PrestaShop\PrestaShop\Core\Addon\Module\ModuleManagerBuilder;

/**
/**
* @since 1.5.0
*/
class HelperFormCore extends Helper
Expand Down
Expand Up @@ -32,6 +32,7 @@
use PrestaShop\PrestaShop\Core\Grid\Action\Row\RowActionCollection;
use PrestaShop\PrestaShop\Core\Grid\Action\Row\Type\Customer\DeleteCustomerDiscountRowAction;
use PrestaShop\PrestaShop\Core\Grid\Action\Row\Type\Customer\EditCustomerDiscountRowAction;
use PrestaShop\PrestaShop\Core\Grid\Action\ViewOptionsCollection;
use PrestaShop\PrestaShop\Core\Grid\Column\ColumnCollection;
use PrestaShop\PrestaShop\Core\Grid\Column\Type\Common\ActionColumn;
use PrestaShop\PrestaShop\Core\Grid\Column\Type\DataColumn;
Expand Down Expand Up @@ -131,4 +132,13 @@ protected function getColumns()
])
);
}

/**
* {@inheritdoc}
*/
public function getViewOptions()
{
return (new ViewOptionsCollection())
->add('display_name', false);
}
}
Expand Up @@ -57,8 +57,8 @@
use PrestaShop\PrestaShop\Core\Domain\ShowcaseCard\Query\GetShowcaseCardIsClosed;
use PrestaShop\PrestaShop\Core\Domain\ShowcaseCard\ValueObject\ShowcaseCard;
use PrestaShop\PrestaShop\Core\Grid\Definition\Factory\CustomerGridDefinitionFactory;
use PrestaShop\PrestaShop\Core\Search\Filters\CustomerDiscountFilters;
use PrestaShop\PrestaShop\Core\Search\Filters\CustomerAddressFilters;
use PrestaShop\PrestaShop\Core\Search\Filters\CustomerDiscountFilters;
use PrestaShop\PrestaShop\Core\Search\Filters\CustomerFilters;
use PrestaShopBundle\Component\CsvResponse;
use PrestaShopBundle\Controller\Admin\FrameworkBundleAdminController as AbstractAdminController;
Expand Down

0 comments on commit d4d9dd4

Please sign in to comment.