Skip to content

Releases: sonata-project/SonataAdminBundle

3.34.0

09 Apr 12:27
3.34.0
26ae869

Choose a tag to compare

Added

  • Added some Sonata\AdminBundle\Filter\Persister\FilterPersisterInterface to externalise filter persistence to a dedicated class
  • Added some Sonata\AdminBundle\Filter\Persister\SessionFilterPersister to store filters to session (as done now)
  • Added TemplateRegistry, TemplateRegistryInterface and MutableTemplateRegistryInterface to handle all template registration related functionality from both AbstractAdmin and Pool.
  • Added required option to editable list choice
  • Added search option to enable/disable the search form in the sidebar

Changed

  • Changed Sonata\AdminBundle\Admin\AbstractAdmin::getFilterParameters to use the configured filter persister component
  • Reordered bootstrap.js javascript dependency fixes problems with jQuery UI dialogs
  • side_bar_after_nav_content block is now empty by default

Deprecated

  • Deprecated AbstractAdmin methods getTemplate and getTemplates.
  • Deprecated AbstractAdmin attribute $templates.
  • Deprecated Pool methods getTemplate, setTemplates and getTemplates.
  • Deprecated Pool attribute $templates.
  • Deprecated Twig function get_pool_template.

Fixed

  • if object is empty, don't try to create an edit route
  • Fix edit choice with a relation field on admin list
  • Added missing french translation for Toggle Navigation
  • Explain command compatible with sf4
  • Fixed deprecation notice when Pool is injected in service through autowiring
  • ChoiceFieldMaskType now works on inline table collections
  • Navbar positioning on mobile is no longer altered like in desktop
  • Increase consistency on default page sizes (replaced 192 by 256)
  • Disable form submit buttons when the form gets submitted
  • form types FQCN are now used in filter. Improves compatibility with SF3/4
  • Not working sidebar menu tree with AdminLTE v2.4

3.33.0

12 Mar 10:10
3.33.0
907fad7

Choose a tag to compare

Changed

  • Replaced calls to Twig internal Environment::loadTemplate() method with Environment::load() in SonataAdminExtension.

Deprecated

  • Deprecated SonataAdminExtension::output(). Now using the private render() method. Please use the render*() methods instead.

Fixed

  • FieldDescription null check missing in ModelAutocompleteFilter
  • Fatal error in strict mode
  • Avoid calling protected/private methods when retrieving values from entities
  • getFieldValue from BaseFieldDescription can now handle getting a value from null objects.
  • base_list template includes the configurable button_create template rather than the default create_button.html.twig.

3.32.0

28 Feb 17:00
3.32.0
7f07dbf

Choose a tag to compare

Changed

  • Allow capturing of any link click inside of modal
  • batch checkbox is hidden when using the mosaic view in modal
  • whole mosaic item is now wrapped in a tag instead of just title
  • Make search result page less heavy

Fixed

  • ModelAutocompleteType can now be used without a linked admin class
  • Compatibility with edit relation on list with PHPCR and MongoDB Sonata bundles
  • fix behaviour of AbstractAdmin::preValidate by relying on form event listener
  • Admins without global search filters will no longer be shown in the global search.
  • including wrong javascript code for associations modals
  • Fixed PHP warnings when ChoiceFieldMaskType option map is invalid or empty
  • Fixed javascript handling of ChoiceFieldMaskType when option expanded is true
  • Templates that rely on the admin variable in Twig can now use the get_admin_template function correctly.

3.31.1

08 Feb 10:24
3.31.1
215fd15

Choose a tag to compare

Added

  • Missing getOwnerPermissions to AdminObjectAclData

Changed

  • Switch all templates references to Twig namespaced syntax
  • Switch from templating service to sonata.templating

Fixed

  • Not found issues for some locales which are not present in frontend dependencies like moment or select2
  • Only do $filter->apply if the filter is "active" on the datagrid list
  • Only do $filter->apply if the filter has a value that is not empty string
  • Error if the field in filter list is named children
  • Use FQCN form types for ACL form creation
  • Fixed missing translation for Toggle navigation

3.31.0

23 Jan 09:50
3.31.0
499d7d2

Choose a tag to compare

Added

  • Added new safe_label option to allow HTML pass-through on autocomplete form type
  • Added filter counter to admin lists

Changed

  • template paths to adapt to the convention
  • Replace twig paths with new naming conventions

Fixed

  • request attribute deprecation on knp_menu.voter
  • Added path to cookies when hiding sidebar to avoid creating multiple cookies
  • Nested arrays will show properly on show/list fields
  • path to dashboard
  • ModelHiddenType - default hidden attribute is now set to true
  • Fix bug when we pass null as fieldName to BaseFieldDescriptor::getFieldValue

3.30.1

02 Jan 08:30
3.30.1
dd9675e

Choose a tag to compare

Added

  • Make explicit dependency with symfony/asset

Changed

  • Admin and filter services are shared

3.30.0

25 Dec 16:14
3.30.0
e492eb6

Choose a tag to compare

Changed

  • Menu on the left side stays hidden while changing pages.

Deprecated

  • AbstractAdmin::addSubClass()

Fixed

  • Checking for fixed class on body before adjusting the position of the content div
  • Fixed container compile error, if JMSDiExtraBundle is enabled.
  • Fixed twig dependency for sonata.admin.controller.admin service

3.29.0

16 Dec 18:41
3.29.0
ddef92b

Choose a tag to compare

Added

  • Added edit button functionality
  • Added possibility to add and remove javascripts/stylesheets without adding all defaults again

Changed

  • added missing Dutch translations
  • Services tagged with sonata.admin and sonata.admin.filter.type are now public
  • Improvements on AbstractAdmin::getClass() method

Fixed

  • Fixed calling route generator with boolean value
  • Replace FQCN strings with ::class constants
  • Add trans filter to form_group and form_tab description
  • added Turkish translations
  • don't display fields that are missing in child classes
  • Patched collection form handling script to maintain File input state when new items are added to collections
  • exporter-related error during cache:clear command.
  • added missing italian translations

3.28.0

30 Nov 10:27
3.28.0
5dacb8c

Choose a tag to compare

Added

  • Added CRUDController::redirectToList method for all list redirections
  • added Russian translations

Changed

  • Handle empty id list in CRUDController::batchAction
  • All services without a declared visibility are now public

Fixed

  • It is now allowed to install Symfony 4
  • Updated src/Resources/views/standard_layout.html.twig template in order to remove whitespace rendering before HTML DOCTYPE declaration.
  • interference with other bundles

Deprecated

  • using the ChildrenVoter class
  • using the sonata.admin.menu.matcher.voter.children service

Security

  • Fixed XSS vulnerability in autocomplete form type

3.27.0

26 Nov 17:26
3.27.0
875374f

Choose a tag to compare

Added

  • Added some Japanese messages
  • Added CRUDController::renderWithExtraParams as a replacement for the render method

Deprecated

  • Deprecated CRUDController::render

Fixed

  • Problem with FormRenderer not having environment causing that inline collection was unusable on SF 3.4
  • Deprecation warning for overriding Controller::render which is supposed to be final