All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
3.13.0 - 2017-02-03
- Added support for priority attribute in the Extension compiler pass
- Compatibility of ajax actions with Twig 2.0
3.12.0 - 2017-01-31
- Compatibility with Twig 2.0
--services
default-value to null inSonata\AdminBundle\Command\GenerateAdminCommand
ModelToArrayTransformer::$choiceList
propertyModelToArrayTransformer::$choiceList::__construct()
three-argument-signature is deprecated
- "Silent display of undefined block" Twig deprecation
- Twig deprecation notice when using template inheritance to get a macro
- The
request
parameter is passed to custom batch actions.
3.11.0 - 2017-01-17
- Extract admin group and label translations
- JQuery event trigger to Admin.setup_list_modal()
- Updated compiler pass to support parent definition when using abstract service for admin.
- Fixed behaviour of persistent parameters in list editables
- JMSDiExtraBundle is configured correctly to pick up Sonata annotations.
3.10.3 - 2016-12-22
- A bug with the side menu arrow position
- Display correct name of group uses default translation domain
- A Twig deprecation added in Twig 1.28.0
- A Sonata deprecation called by Sonata itself by adding a way to disable it when called internally
3.10.2 - 2016-12-15
- Filter form theme was used for create and edit forms too.
3.10.1 - 2016-12-13
- Fix compatibility with Symfony 3.2 form renderer.
- Fix permissions when setting role for the security handler
- Translation in twig templates uses the twig translation filter
3.10.0 - 2016-11-25
- Added new
roles
configuration field to configuration of menu item routes. - Improved class support for filter factory
- Add a length option to truncate columns on list view
- Update adminLTE dependency to 2.3.6
- Use block instead of macro to render show groups
- Fixed missing access check for menu route items.
- Fixed
trigger_error
calls -E_USER_DEPRECATED
was concatenated to the sentence, not passed as argument - Deep arrays can now be displayed without error, and recursively
- Fixed bug in revisions compare view
- Deprecated
base_show_macro.html.twig
3.9.0 - 2016-10-06
- Added
CRUDController::trans
method
- Translation in twig templates uses the twig translation filter
- Deprecated
AdminInterface::trans
method - Deprecated
AbstractAdmin::$translator
property - Deprecated
AbstractAdmin::trans
method - Deprecated
AbstractAdmin::transChoice
method - Deprecated
AbstractAdmin::getTranslator
method - Deprecated
AbstractAdmin::setTranslator
method
- Fixed missing default
translationDomain
- Fixed deprecated
BaseBlockService
usage
3.8.0 - 2016-09-20
- Added three new sub-blocks to standard_layouts javascript block
- Moved the raw references of buttons templates from
Admin\AbstractAdmin
to configuration options
3.7.1 - 2016-09-13
- The
ALL
role needs to be checked separately, otherwise theAuthorizationChecker
returnfalse
all the time. - Added
var
keyword to explicitly define the "showMaskChoiceEl" variable
3.7.0 - 2016-09-07
- Added additional
_ALL
role check toRolesecurityHandler
- Improve accessibility by adding
aria-hidden="true"
- Set
choices_as_values
totrue
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
- The admin no longer checks for the
translator
service before translating.
3.6.0 - 2016-09-01
- Added new methods to set default values for the list view
- Auto-detect type when adding
FormBuilderInterface
toFormMapper
- Type for
Filter
to be compatible with Symfony 2.8+ - Type for
Filter Operator
to be compatible with Symfony 2.8+
3.5.0 - 2016-08-29
- 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 css
margin-left: -20px
of checkbox. - Updated spanish batch confirmation message translation.
- Changed injection of
$container
to$adminPool
inTwig/GlobalVariables
- use
RuntimeException
instead of non existingRunTimeException
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
- The
$container
property inTwig/GlobalVariables
- 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
- Internal test classes are now excluded from the autoloader
- Removed unnecessary security checks in
standard_layout.html.twig
3.4.0 - 2016-07-05
- Support for select2 v4 (
select2.full.js
file is needed)
- The
Sonata\AdminBundle\Form\Type\ModelTypeList
is deprecated forModelListType
- Ignoring
translation_domain
in tab menu
- Removed useless
ModelAutocompleteType::getParent
override - Removed useless
read_only
option definition fromModelAutocompleteType
3.3.2 - 2016-06-23
- Reverted #3961 to fix a regression concerning child admins on edit route
3.3.1 - 2016-06-17
- Fixes broken extractor service
- Make CRUDController::editAction respect optional parameter
- Not aligned checkbox and radio on horizontal form
3.3.0 - 2016-06-13
- The
Select
button is always visible and has a primary check style insonata_type_model_list
popups
- The
$context
argument ofAdminInterface::createQuery
was deprecated
- Fix wrong view role check on
AbstractAdmin::getSearchResultLink
- Eternal deprecation warning because of old class on compilation
3.2.0 - 2016-06-04
- 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
- Overriding
AbstractAdmin::configureBatchActions
is now deprecated AbstractAdmin::getBreadcrumbs
is deprecated in favor ofBreadcrumbsBuilder::getBreadcrumbs
AbstractAdmin::buildBreadcrumbs
is deprecatedAbstractAdmin::$breadcrumbs
is deprecated
- 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 - 2016-05-17
- Added
AbstractAdmin
class, replacingAdmin
one - Added
BaseMapper::keys
method
- Updated AdminLTE theme to version 2.3.3
RouteCollection::clearExcept
can now have a single string argument
- Deprecated
BaseFieldDescription::camelize
- Deprecated
AdminHelper::camelize
- Deprecated
Admin
class - Deprecated
AdminExtension
class - Deprecated default template loading on exception mechanism
- 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
3.0.0 - 2016-05-08
- Add missing Route constructor parameters to
RouteCollection:add
method - Add the
hasRoute
method to the AdminInterface - Integration of KNPMenu for the admin menu. This integration is reset when the standard layout
standard_layout.html.twig
is overriden. The KNPMenu is available insonata_menu.html.twig
template. - Add
getFieldOption
,setFieldOption
methods to the FilterInterface - Add the
getFilterFieldDescription
method to the AdminInterface - Add the
getMaxPageLinks
,setMaxPageLinks
methods to the PagerInterface
- Admin LTE 2.0 used. Assets files changed.
- Move
sonata_wrapper
block onstandard_layout.html.twig
- CSS class
sonata-autocomplete-dropdown-item
is not automatically added to dropdown autocomplete item insonata_type_model_autocomplete
, use optiondropdown_item_css_class
to set the CSS class of dropdown item. - Text from
Admin::toString
method is escaped for html output before adding in flash message to prevent possible XSS vulnerability.
- Remove
btn-outline
from doctrine-orm-admin form actions buttons