Skip to content

Releases: sonata-project/SonataAdminBundle

3.7.1

13 Sep 13:00
3.7.1
240ecbd
Compare
Choose a tag to compare

Fixed

  • The ALL role needs to be checked separately, otherwise the AuthorizationChecker return false all the time.
  • Added var keyword to explicitly define the "showMaskChoiceEl" variable

3.7.0

07 Sep 09:35
3.7.0
e9c9980
Compare
Choose a tag to compare

Added

  • Added additional _ALL role check to RoleSecurityHandler

Changed

  • Improve accessibility by adding aria-hidden="true"

Fixed

  • Set choices_as_values to true on choice type based to be compatible with Symfony 3
  • Use class name when referencing Form Type to be compatible with Symfony 2.8+
  • Remove Sonata\CoreBundle\Exporter\Exporter from classes to compile to cache to avoid deprecation warning

Removed

  • The admin no longer checks for the translator service before translating.

3.6.0

01 Sep 14:59
3.6.0
280c412
Compare
Choose a tag to compare

Added

  • Added new methods to set default values for the list view

Fixed

  • Auto-detect type when adding FormBuilderInterface to FormMapper
  • Type for Filter to be compatible with Symfony 2.8+
  • Type for Filter Operator to be compatible with Symfony 2.8+

3.5.0

29 Aug 08:30
3.5.0
59e17c9
Compare
Choose a tag to compare

Added

  • Export fields names are now translated
  • Added PL translations
  • Configuration to change the default route used to generate the link to the parent object inside a breadcrumb, when in a child admin
  • Docs for this configuration
  • Twig blocks to simplify the template override.
  • Added test for AdminBundle\Menu\Matcher\Voter\ChildrenVoter
  • Added class name support for AbstractAdmin::configureDatagridFilters
  • Added ShowMapper::removeGroup method

Changed

  • Changed css margin-left: -20px of checkbox.
  • Updated spanish batch confirmation message translation.
  • Changed injection of $container to $adminPool in Twig/GlobalVariables
  • use RuntimeException instead of non existing RunTimeException
  • AbstractAdmin::setSubject in order to check that given $subject matches registered admin class entity.
  • Added the action name to title_batch_confirmation translation.
  • Added the object name to message_delete_confirmation translation.
  • Added the action name to title_batch_confirmation translation.
  • Move actions buttons display logic from templates to AbstractAdmin::configureActionButtons
  • Moved translation of breadcrumbs to twig template
  • Moved translation of batch action_label to twig template
  • Move actions buttons display logic from templates to AbstractAdmin::configureActionButtons
  • Widget tests should extend AbstractWidgetTestCase

Deprecated

  • The $container property in Twig/GlobalVariables

Fixed

  • The "batch" checkbox at the top of the list would not work when iCheck is disabled.
  • Not working read_only option on Twig with Symfony 3
  • Fixed PT-BR translations
  • XSS Vulnerability in breadcrumbs
  • Handle Symfony BC for Datagrid hidden types
  • Fixed duplicate translation for list filters
  • Fixed visibility of block sonata_top_nav_menu contents
  • Fix how metadata information are retrieved when admin information are dumped
  • Symfony 3 support in AclMatrixType
  • Symfony 3 type support in AclMatrixType
  • Fixed translation in browser titles breadcrumb
  • Fixed translation of entities in breadcrumb
  • Standardize the global form error

Removed

  • Internal test classes are now excluded from the autoloader
  • Removed unnecessary security checks in standard_layout.html.twig

3.4.0

05 Jul 09:22
3.4.0
72d2b3f
Compare
Choose a tag to compare

Added

  • Support for select2 v4 (select2.full.js file is needed)

Deprecated

  • The Sonata\AdminBundle\Form\Type\ModelTypeList is deprecated for ModelListType

Fixed

  • Ignoring translation_domain in tab menu

Removed

  • Removed useless ModelAutocompleteType::getParent override
  • Removed useless read_only option definition from ModelAutocompleteType

3.3.2

23 Jun 18:28
3.3.2
c487e5f
Compare
Choose a tag to compare

Fixed

  • Reverted #3961 to fix a regression concerning child admins on edit route

3.3.1

17 Jun 15:58
3.3.1
15b350f
Compare
Choose a tag to compare

Fixed

  • Fixes broken extractor service
  • Make CRUDController::editAction respect optional parameter
  • Not aligned checkbox and radio on horizontal form

3.3.0

13 Jun 13:28
3.3.0
a8f34c0
Compare
Choose a tag to compare

Changed

  • The Select button is always visible and has a primary check style in sonata_type_model_list popups

Deprecated

  • The $context argument of AdminInterface::createQuery was deprecated

Fixed

  • Fix wrong view role check on AbstractAdmin::getSearchResultLink
  • Eternal deprecation warning because of old class on compilation

3.2.0

04 Jun 15:32
3.2.0
685f48a
Compare
Choose a tag to compare

Added

  • Added new field type email on the list
  • Added AbstractAdmin::configureBatchActions method
  • Extract the breadcrumbs building part of the AbstractAdmin to a separate class
  • Added AbstractAdmin::getSearchResultLink method
  • Add the AbstractAdmin::showMosaicButton method
  • Add the show_mosaic_button option to configuration

Deprecated

  • Overriding AbstractAdmin::configureBatchActions is now deprecated
  • AbstractAdmin::getBreadcrumbs is deprecated in favor of BreadcrumbsBuilder::getBreadcrumbs
  • AbstractAdmin::buildBreadcrumbs is deprecated
  • AbstractAdmin::$breadcrumbs is deprecated

Fixed

  • Fix support for composite primary key in AbstractAdmin::getSubject
  • Fixed wrong route in list__select.html.twig
  • Fixed wrong method call in list__select.html.twig
  • Fixed Pool::getAdminsByGroup() for the new admin groups values

3.1.0

23 May 13:13
3.1.0
53850de
Compare
Choose a tag to compare

Added

  • Added AbstractAdmin class, replacing Admin one
  • Added BaseMapper::keys method

Changed

  • Updated AdminLTE theme to version 2.3.3
  • RouteCollection::clearExcept can now have a single string argument

Deprecated

  • Deprecated BaseFieldDescription::camelize
  • Deprecated AdminHelper::camelize
  • Deprecated Admin class
  • Deprecated AdminExtension class
  • Deprecated default template loading on exception mechanism

Fixed

  • Fix detection of path when using nested properties with underscores in AdminHelper:getElementAccessPath method
  • Fixed bad rendering on datetime field with single_text widget for date and time
  • Fixed rendering of empty form groups