Releases: EasyCorp/EasyAdminBundle
1.12.7
The big new feature of this version is the introduction of the easyadmin_autocomplete
form type thanks to the fantastic work made by @yceruto. Read the docs for the new type and start using it to improve the peformance of your backends when some form displays a relation with lots of elements.
New features
[8e6343f][4bace89] Added an autocomplete field (@yceruto, @javiereguiluz)
[efbf4ab][4ebb10e] Improved the behavior of the search engine when the query is empty (@javiereguiluz)
Bug fixes
[3405a7a] Improved the error styles for vich_image and vich_file form fields (@javiereguiluz)
[dbba426] Updated Turkish translation (@ismailbaskin)
1.12.6
New features
[0342566] Show 'empty_label' when all the elements of a collection are removed dynamically with JavaScript (@javierrodriguezcuevas)
[8db1608] Added new templates for emails, URLs and telephone numbers (@javiereguiluz)
[0d7c424] Optimized the loading of web assets (@javiereguiluz)
Bug fixes
[2173ad6] Updated Dutch translations (@ThomasBerends)
[ae3f4e0] In the show view, when a collection has lots of elements, instead of listing them all display a badge with the total count (@GaryPEGEOT-WIC)
[343a358] Added a block in the "list" view to simplify the "global actions" contents (@Pierstoval)
Docs
[edc43ea] Added a note about defining custom entity options (@javiereguiluz)
[f5d737e] Reorganized docs about integrating third-party bundles (@Pierstoval)
[9fb2e9f] Minor update for the tutorial about FOSRestBundle integration (@Yunyun548)
1.12.5
New features
[73bc496] Allow to translate the "Are you sure?" message showed in forms (@javiereguiluz)
[342d47a] Removed the _easyadmin_render_css route. Custom CSS is now pregenerated during container compilation and then it's inlined in the templates (@javiereguiluz)
Bug fixes
[5d45710] Improved the styles of the checkbox in vertical forms (@javiereguiluz)
[72f5042] Trigger jQuery event on item add/delete in CollectionType (@javierrodriguezcuevas)
[9742107] Minor fixes suggested by PhpStorm inspections (@javiereguiluz)
[849301a][7754a6a][54e7f76] Improved error messages for non-mapped configured entities (@xabbuh)
[068145d] Removed a typehint which was too restrictive (@javiereguiluz)
[b032672] Updated the German translation (@xabbuh)
1.12.4
Features
[e6b98a4] Added sticky form actions in edit/new views (@javierrodriguezcuevas)
[808aaa2] Added a new search_form
block in list view to simplify template overriding (@Pierstoval)
Bug fixes
[2802631] Fixed a typo in the Tips & Tricks chapter (@Pierstoval)
[62a5448] Fixed the Twig template for the fields of type JSON Array (field_json_array.html.twig
) (@MHaendel)
[ab604c6] Updated the list of classes to compile to not include classes with annotations (@javiereguiluz)
[d8249d6] Fixed external menu routes to not include additional parameters (javiereguiluz)
1.12.3
1.12.2
1.12.1
Features
[2f07aa3] Added support for using short form types for popular third-party bundles (e.g. ckeditor
, vich_image
) even when running Symfony 3 (@javiereguiluz)
[82fe4ee] Added some classes used on every page to the list of classes compiled by Symfony. This improves performance very slightly (@javiereguiluz)
[dafd144] Refactored search and pagination (@javiereguiluz)
Bug fixes
[2d6b27b][ba81069] Updated Portuguese translation (@davialexandre)
[aea41f0] Fixed a pagination problem when fetching join collections (@yceruto)
[ac345d3] Fixed missing translation "Delete" (@emmanuelballery)
[3b5e508] Fixed a problem where the search engine returned all entities (@javiereguiluz)
Docs
[0c8cb55] Added a new tutorial about FOSUserBundle + EasyAdmin (@javiereguiluz)
[4359f98] Minor fixes about date fields properties (@davialexandre)
[c34e076] Fixed a minor typo (@emmanuelballery)
[945344d] Fixed a minor issue related to assets (@dayofr)
1.12.0
This version of EasyAdmin includes an important bug fix which could break its backwards compatibility in some edge cases. Depending on your backend configuration, you might need to make some small changes related to the names of the entities.
This error only affects you when defining the backend configuration in several files.
Understanding the problem
Suppose your backend configuration is defined in two different files:
# file1.yml
easy_admin:
entities:
Customers:
class: AppBundle/Entity/User
# ...
# file2.yml
easy_admin:
entities:
Providers:
class: AppBundle/Entity/User
# ...
When EasyAdmin imports both files, only the entity names of the file1.yml
are maintained. The entity names of file2.yml
are lost and they are replaced by numeric keys (0
, 1
, etc.)
When an entity defines a numeric key, EasyAdmin assigns to it a name based on the entity class. In the above example, the Providers
entity name of the file2.yml
config is turned into User
(if there are other entities named User
, a numeric suffix is appended until a unique name is found: User2
, User3
, etc.).
This means that the backend will contain two entities named Customers
and User
, instead of the expected Customers
and Providers
.
Entity names are used as part of the URLs, custom actions and main menu items, so it's very important to maintain the original names assigned by the backend configuration.
The solution
In EasyAdmin 1.12.0 this issue is fixed and everything works as expected when defining the configuration in different files. Your entities will maintain the names you defined in the configuration files.
Backwards compatibility breaks
If you were affected by this issue in the past, you may have configured your backend to use the wrong entity names instead of the entity names you defined. In version 1.12.0 you'll need to make the opposite change. Check out the entity names in:
- The
easy_admin.design.menu
option. - The methods you may have defined in your own
AdminController
to customize the behavior of some entities (some of these methods include the name of the entity as part of the method name).
1.11.8
In addition to some nice bug fixes, the biggest change of this version is the massive restructuring of the documentation. Everything should be easier to find in the new docs.
New features
[cb454d3] Display the "empty" label when any kind of collection is empty (@yceruto)
[cfd9eff] Redirect to referer if possible after completing the "new" action (@yceruto)
[e637ec9][5a4e6e5] Allowed to display menu dividers inside submenus (@yceruto)
[9bd95ff] Reenabled Appveyor service to run test on Windows (@javiereguiluz)
Bug fixes
[5192859] Updated Turkish translation (@slmcncb)
[d224740] Updated Catalan translation (@Xevi)
[b5c6653] The cookie created for the backend now uses the root website path (@yceruto)
[c931f39] Always use the template configured by the entity property (@javiereguiluz)
[f5c9ed7] Improved page titles design for non-list views (@javiereguiluz)
[0480f7d][d8a8304] Fixed some missing translations in "new" and "edit" views (@javiereguiluz)
[6937cc0] Fixed a bug related to the way we process the backend configuration in the EasyAdminConfigurationPass compiler pass (@yceruto)
Documentation
[6590cc3] Reorganized and updated the entire documentation (@javiereguiluz)
[29f042e] Added a mini-tutorial about FOSRestBundle and EasyAdmin integration (@javiereguiluz)
[d86622b] Defined templates for GitHub Issues and Pull Requests (@Pierstoval, @javiereguiluz)
1.11.7
This is a minor release which fixes lots of bugs discovered in the last days.
New features
[8a6a7ee] Allowed to use any template path for custom fields templates (@javiereguiluz)
Bug fixes
[ff92ca3] Allowed to hide/show the new and search actions separately (@Pierstoval)
[6067065] Fixed the styles of the header and menu in responsive mode (@javiereguiluz)
[a53e2cd] Fixed the styles of the responsive tables (@javiereguiluz)
[a44c681] Fixed the styles for some types of buttons (@javiereguiluz)
[773977e] Improved the styles of the associations (@javiereguiluz)
[7f45c59] Fixed the styles of the global actions in the "list" view (@javiereguiluz)
[0ebc561] Fixed the translation of labels in the "show" view (@javiereguiluz)
[2b5cb4b] Fixed some minor translation issues (@javiereguiluz)
[446f335] Fixed the Turkish paginator translations (@javiereguiluz)