The same patch with css style
Change issue status
To have access to a deleted button per date slot, I propose the following solution:
- Update the drupal core to the last version (8.9.7)
- Install the patch of comment 214 of issue 1038316 :
*
https://www.drupal.org/project/drupal/issues/1038316
📌
Allow for deletion of a single value of a multiple value field
Fixed
*
https://www.drupal.org/files/issues/2020-06-11/1038316-214.patch →
- Then install the patch I just posted (compatible with 2.0.0-rc1 version)
You will then get a delete button for each date slot.
Hello shubhangi1995,
Thanks for the patch you proposed in comment 147, but it doesn't work on a Php 7.0 project:
To reproduce the error, you would need to be in version 7.0 of php and version 8.9.7 of the Drupal core, and to go to a url of the type "/block/{block_content}/revision/{block_content_revision}/revert", then you'll get the following error that will appear "The website encountered an unexpected error. Please try again later".
For this reason, I propose a new patch that I tested before on my local environment and including the same type of correction that shubhangi1995 made.
Translated with www.DeepL.com/Translator (free version)
Add admin_route option to true, for the following routes :
- 'entity.block_content.revision'
- 'entity.block_content.version_history'
- 'entity.block_content.revision_revert_form'
- 'entity.block_content.revision_revert'
I add to this issue the same patch, compatible with version 8.9.7 of the Drupal core and compatible with version 7.0 of PHP.
I add to this issue the same patch, compatible with version 8.9.7 of the Drupal core.