Sonataadminbundle: batch action delete with filters delete all elements

Created on 17 Mar 2018  路  2Comments  路  Source: sonata-project/SonataAdminBundle

Sonata packages

sonata-project/admin-bundle              3.33.0 3.33.0 The missing Symfony Admin Generator
sonata-project/block-bundle              3.12.1 3.12.1 Symfony SonataBlockBundle
sonata-project/cache                     2.0.1  2.0.1  Cache library
sonata-project/core-bundle               3.9.1  3.9.1  Symfony SonataCoreBundle
sonata-project/datagrid-bundle           2.3.1  2.3.1  Symfony SonataDatagridBundle
sonata-project/doctrine-extensions       1.0.2  1.0.2  Doctrine2 behavioral extensions
sonata-project/doctrine-orm-admin-bundle 3.4.2  3.4.2  Symfony Sonata / Integrate Doctrine ORM into the SonataAdmin...
sonata-project/easy-extends-bundle       2.5.0  2.5.0  Symfony SonataEasyExtendsBundle
sonata-project/exporter                  1.8.0  1.8.0  Lightweight Exporter library
sonata-project/intl-bundle               2.4.0  2.4.0  Symfony SonataIntlBundle
sonata-project/user-bundle               4.1.1  4.1.1  Symfony SonataUserBundle

Symfony packages

```symfony/asset v3.4.6 v4.0.6 Symfony Asset Component
symfony/browser-kit v3.4.6 v4.0.6 Symfony BrowserKit Component
symfony/cache v3.4.6 v4.0.6 Symfony Cache component with PSR-6, PSR-16, and tags
symfony/class-loader v3.4.6 v3.4.6 Symfony ClassLoader Component
symfony/config v3.4.6 v4.0.6 Symfony Config Component
symfony/console v3.4.6 v4.0.6 Symfony Console Component
symfony/debug v3.4.6 v4.0.6 Symfony Debug Component
symfony/dependency-injection v3.4.6 v4.0.6 Symfony DependencyInjection Component
symfony/doctrine-bridge v3.4.6 v4.0.6 Symfony Doctrine Bridge
symfony/dom-crawler v3.4.6 v4.0.6 Symfony DomCrawler Component
symfony/dotenv v3.4.6 v4.0.6 Registers environment variables from a .env file
symfony/event-dispatcher v3.4.6 v4.0.6 Symfony EventDispatcher Component
symfony/expression-language v3.4.6 v4.0.6 Symfony ExpressionLanguage Component
symfony/filesystem v3.4.6 v4.0.6 Symfony Filesystem Component
symfony/finder v3.4.6 v4.0.6 Symfony Finder Component
symfony/flex v1.0.71 v1.0.71
symfony/form v3.4.6 v4.0.6 Symfony Form Component
symfony/framework-bundle v3.4.6 v4.0.6 Symfony FrameworkBundle
symfony/http-foundation v3.4.6 v4.0.6 Symfony HttpFoundation Component
symfony/http-kernel v3.4.6 v4.0.6 Symfony HttpKernel Component
symfony/inflector v3.4.6 v4.0.6 Symfony Inflector Component
symfony/intl v3.4.6 v4.0.6 A PHP replacement layer for the C intl extension that includes additio...
symfony/lts v3 v3 Enforces Long Term Supported versions of Symfony components
symfony/maker-bundle v1.2.0 v1.2.0 Symfony Maker helps you create empty commands, controllers, form class...
symfony/monolog-bridge v3.4.6 v4.0.6 Symfony Monolog Bridge
symfony/monolog-bundle v3.2.0 v3.2.0 Symfony MonologBundle
symfony/options-resolver v3.4.6 v4.0.6 Symfony OptionsResolver Component
symfony/orm-pack v1.0.5 v1.0.5 A pack for the Doctrine ORM
symfony/phpunit-bridge v3.4.6 v4.0.6 Symfony PHPUnit Bridge
symfony/polyfill-apcu v1.7.0 v1.7.0 Symfony polyfill backporting apcu_* functions to lower PHP versions
symfony/polyfill-intl-icu v1.7.0 v1.7.0 Symfony polyfill for intl's ICU-related data and classes
symfony/polyfill-mbstring v1.7.0 v1.7.0 Symfony polyfill for the Mbstring extension
symfony/polyfill-php56 v1.7.0 v1.7.0 Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions
symfony/polyfill-php70 v1.7.0 v1.7.0 Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions
symfony/polyfill-php72 v1.7.0 v1.7.0 Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions
symfony/polyfill-util v1.7.0 v1.7.0 Symfony utilities for portability of PHP codes
symfony/process v3.4.6 v4.0.6 Symfony Process Component
symfony/profiler-pack v1.0.3 v1.0.3 A pack for the Symfony web profiler
symfony/property-access v3.4.6 v4.0.6 Symfony PropertyAccess Component
symfony/routing v3.4.6 v4.0.6 Symfony Routing Component
symfony/security v3.4.6 v4.0.6 Symfony Security Component
symfony/security-acl v3.0.1 v3.0.1 Symfony Security Component - ACL (Access Control List)
symfony/security-bundle v3.4.6 v4.0.6 Symfony SecurityBundle
symfony/serializer v3.4.6 v4.0.6 Symfony Serializer Component
symfony/stopwatch v3.4.6 v4.0.6 Symfony Stopwatch Component
symfony/swiftmailer-bundle v3.2.1 v3.2.1 Symfony SwiftmailerBundle
symfony/templating v3.4.6 v4.0.6 Symfony Templating Component
symfony/translation v3.4.6 v4.0.6 Symfony Translation Component
symfony/twig-bridge v3.4.6 v4.0.6 Symfony Twig Bridge
symfony/twig-bundle v3.4.6 v4.0.6 Symfony TwigBundle
symfony/validator v3.4.6 v4.0.6 Symfony Validator Component
symfony/var-dumper v3.4.6 v4.0.6 Symfony mechanism for exploring and dumping PHP variables
symfony/web-profiler-bundle v3.4.6 v4.0.6 Symfony WebProfilerBundle
symfony/webpack-encore-pack v1.0.2 v1.0.2 A pack for Symfony Encore
symfony/yaml v3.4.6 v4.0.6 Symfony Yaml Component


#### PHP version

PHP 7.1.6 (cli) (built: Jun 8 2017 02:06:32) ( ZTS MSVC14 (Visual C++ 2015) x86 )
Copyright (c) 1997-2017 The PHP Group
Zend Engine v3.1.0, Copyright (c) 1998-2017 Zend Technologies
```

Subject

batch action delete with filters selected, delete all elements intead of the elements show with the filters.

bug critical pending author stale

Most helpful comment

Im tagging it as critical , because it is common to think that if it shows: Apply to all (6) . It will only apply to those items, and not the whole list. Not sure how hard it is to fix, but it is not great to going for a sublist batch delete, and ending with the whole table being removed, and it could happen on the live site, with a possible data loss

All 2 comments

Im tagging it as critical , because it is common to think that if it shows: Apply to all (6) . It will only apply to those items, and not the whole list. Not sure how hard it is to fix, but it is not great to going for a sublist batch delete, and ending with the whole table being removed, and it could happen on the live site, with a possible data loss

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

core23 picture core23  路  4Comments

peter-gribanov picture peter-gribanov  路  3Comments

tiagojsag picture tiagojsag  路  4Comments

aglemakinafr picture aglemakinafr  路  4Comments

vazgen picture vazgen  路  4Comments