Skip to content

Releases: EasyCorp/EasyAdminBundle

1.12.4

24 Mar 15:49
Compare
Choose a tag to compare

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

23 Mar 14:01
Compare
Choose a tag to compare

This is a minor release which fixes a problem with the template used in the EasyAdmin Data Collector (see [b7908a6] for details).

1.12.2

23 Mar 07:18
Compare
Choose a tag to compare

This is a minor release to fix a bug introduced in [82fe4ee] where we tell Symfony to compile the most commonly used classes in the bundle. As @xabbuh showed in his fix (13fc098) you can't add the main bundle class to that list.

1.12.1

22 Mar 19:23
Compare
Choose a tag to compare

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

15 Mar 19:41
Compare
Choose a tag to compare

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

11 Mar 12:14
Compare
Choose a tag to compare

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

28 Feb 19:39
Compare
Choose a tag to compare

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)

1.11.6

26 Feb 17:09
Compare
Choose a tag to compare

The main new feature of this version is how we display the associations in the show view. Before, we just displayed the number of elements:

Now we display the list of related entities (with links to them if they are managed by EasyAdmin):

Another minor but useful new feature is that we now display the version of the bundle in the toolbar and the profiler:

New features

[d800051] Improved how associations are displayed in the "show" view (@yceruto, @javiereguiluz)
[576e25f] Showed the installed EasyAdmin version in the toolbar and profiler (@javiereguiluz)
[11263b0] Added a "target" option to specify the target attribute for the menu links (@maldoinc, @javiereguiluz)
[4b48b62] Allowed to sort the search results (@javiereguiluz)
[be32d78] Improved Travis configuration to get faster results (@javiereguiluz)

Bug fixes

[1ed09a1] Maintain the selected menu item after searching (@javiereguiluz)
[a262759] Misc. fixes for issues reported by Scrutinizer (@javiereguiluz)
[a31c482] Fixed the "Back to list" link for associations (@javiereguiluz)
[0c6c9bc] Made the Symfony Debug toolbar look always nice (@javiereguiluz)
[d862a6a] Improved the profiler when there is no entity (@javiereguiluz)
[8478e31] Allowed checkboxes to define a custom label in forms (@javiereguiluz)

Translations

[ed43d66] Updated Turkish translation (@slmcncb)
[d45c090] Updated Russian translation (@remedge)

1.11.5

16 Feb 19:01
Compare
Choose a tag to compare

This is a minor bugfix release.

New features

[34d260d] Enabled checking the PHP code syntax in Travis CI (@TomasVotruba)

Bug fixes

[2aaa7ff] Fixed the list/search page title when it contains HTML tags (@gabiudrescu, @javiereguiluz)
[04b467c] Fixed the default label of the "Show" action in "list" view (@javiereguiluz)
[085a076] Avoid displaying broken images in "show" view when the entity images is "null" (@javiereguiluz)
[bd4f8bc] Maintain the selected menu item when using pagination (@javiereguiluz)
[0505cc9] Improved installation instructions for Symfony 3 (@javiernunez)
[ba8c135] Updated Turkish translation (@slmcncb)

1.11.4

05 Feb 14:46
Compare
Choose a tag to compare

This is a minor bugfix release which fixes an issue with nullable date fields in form-based pages (edit and new):

[1202deb] Improve nullable fields in form templates (@javiereguiluz)