Releases: sonata-project/SonataAdminBundle
Releases · sonata-project/SonataAdminBundle
3.34.0
Added
- Added some
Sonata\AdminBundle\Filter\Persister\FilterPersisterInterfaceto externalise filter persistence to a dedicated class - Added some
Sonata\AdminBundle\Filter\Persister\SessionFilterPersisterto store filters to session (as done now) - Added
TemplateRegistry,TemplateRegistryInterfaceandMutableTemplateRegistryInterfaceto handle all template registration related functionality from bothAbstractAdminandPool. - Added
requiredoption to editable listchoice - Added
searchoption to enable/disable the search form in the sidebar
Changed
- Changed
Sonata\AdminBundle\Admin\AbstractAdmin::getFilterParametersto use the configured filter persister component - Reordered bootstrap.js javascript dependency fixes problems with jQuery UI dialogs
side_bar_after_nav_contentblock is now empty by default
Deprecated
- Deprecated
AbstractAdminmethodsgetTemplateandgetTemplates. - Deprecated
AbstractAdminattribute$templates. - Deprecated
PoolmethodsgetTemplate,setTemplatesandgetTemplates. - Deprecated
Poolattribute$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
ChoiceFieldMaskTypenow 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
Changed
- Replaced calls to Twig internal
Environment::loadTemplate()method withEnvironment::load()inSonataAdminExtension.
Deprecated
- Deprecated
SonataAdminExtension::output(). Now using the privaterender()method. Please use therender*()methods instead.
Fixed
FieldDescriptionnull check missing inModelAutocompleteFilter- Fatal error in strict mode
- Avoid calling protected/private methods when retrieving values from entities
getFieldValuefromBaseFieldDescriptioncan now handle getting a value from null objects.base_listtemplate includes the configurablebutton_createtemplate rather than the defaultcreate_button.html.twig.
3.32.0
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
ModelAutocompleteTypecan now be used without a linked admin class- Compatibility with edit relation on list with PHPCR and MongoDB Sonata bundles
- fix behaviour of
AbstractAdmin::preValidateby 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
ChoiceFieldMaskTypeoptionmapis invalid or empty - Fixed javascript handling of
ChoiceFieldMaskTypewhen optionexpandedistrue - Templates that rely on the
adminvariable in Twig can now use theget_admin_templatefunction correctly.
3.31.1
Added
- Missing
getOwnerPermissionstoAdminObjectAclData
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
momentorselect2 - Only do
$filter->applyif the filter is "active" on the datagrid list - Only do
$filter->applyif 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
Added
- Added new
safe_labeloption 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
requestattribute deprecation onknp_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
Added
- Make explicit dependency with
symfony/asset
Changed
- Admin and filter services are shared
3.30.0
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
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.adminandsonata.admin.filter.typeare now public - Improvements on
AbstractAdmin::getClass()method
Fixed
- Fixed calling route generator with boolean value
- Replace FQCN strings with
::classconstants - 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
Added
- Added
CRUDController::redirectToListmethod 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.twigtemplate in order to remove whitespace rendering before HTML DOCTYPE declaration. - interference with other bundles
Deprecated
- using the
ChildrenVoterclass - using the
sonata.admin.menu.matcher.voter.childrenservice
Security
- Fixed XSS vulnerability in autocomplete form type
3.27.0
Added
- Added some Japanese messages
- Added
CRUDController::renderWithExtraParamsas a replacement for therendermethod
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::renderwhich is supposed to be final