My apologies, Pol, I misspoke! I meant rolled into a new release for use in production.
Patch is also working well for me. Any chance we can get this merged? It would wonderful to kill these warnings.
Thanks for working on this for us!
alex.verhoeven β created an issue.
I am experiencing this as well. It is completely disabling my ability to browse for content in my node reference fields.
Drupal 10.1.5
Entity Browser 2.x dev
Content Browser 8.1.1
The urls on the pager look like this:
https://divinity.ddev.site/entity-browser/modal/modal_content_entity_bro...
except about 10 times as long.
Upgrading to 2.6 using local libraries resolved the issue.
Ah! I didn't realize that adding a user entity reference field to the content type would add it to the available entity reference user fields in the "To" settings. This might be a workaround for me. My main hurdle is that I have thousands of imported nodes from the D7 site that have the assigned editor values as a text string. I will have to do some major bulk operations to move that over into an entity reference field. Being able to use the token would still be the ideal solution in my scenario. I'd be delighted to test a patch when one is available.
Thanks so much for the info!
Experiencing exactly the same issue. Only if I leave the Target and Comparison fields untouched and then save, does it add the state. I am not able to change either field, or edit an existing state. If I try to edit the existing state, I get:
Drupal\Component\Plugin\Exception\PluginNotFoundException: The "" plugin does not exist. Valid plugin IDs for Drupal\field_states_ui\FieldStateManager are: required, visible, collapsed, unchecked, invisible, optional, checked, enabled, expanded, disabled in Drupal\Core\Plugin\DefaultPluginManager->doGetDefinition() (line 53 of core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php).
I really need this functionality as well. I have multiple editors who are assigned to content in an "assigned editor" field, and I currently have to create roles for each one in order to send email to the correct editor. Let me know if I can be of assistance with testing.
I am seeing this as well. I'm on Drupal 10.1.4, using 8.x-1.10. The anchor (flag) icon displays properly, but the two link/unlink icons do not show in the toolbar.
I am also experiencing this issue. I think it probably does relate to the core issue https://www.drupal.org/project/drupal/issues/3346430 π Wrong revision can be loaded into original in \Drupal\Core\Entity\EntityStorageBase::doPreSave Needs work
To reproduce:
- Create new node as Draft
- Change state to Review
- The model recognizes the state change and executes the email action
- Change state back to Draft
- The model recognizes the state change and executes the email action
- Change state to Published
- The model recognizes the state change and executes the email action
- Create a new Draft on the existing node
- Change state to Review
- The model recognizes the state change and executes the email action
- Change state back to Draft
- The model DOES NOT recognize the state change and does not execute the action
So this only happens for me when I'm working with a new draft on an existing, published node
I was not able to get #6 to work entirely for paragraphs (works great for page headers where there is a single target selector), and really wanted the responsive background image to be applied to the outer paragraph div itself, rather than the media item.
Here's what works for me...
I followed the steps in #6 but I did not alter the media.html.twig file. Instead, I use the Twig template for the paragraph, where I am already setting some other, unrelated classes. In that Twig template, I added:
{# get paragraph background image media entity ID and set as class #}
{% if content.field_component_background_image|render %}
{% set item = content.field_component_background_image['#items'][0] %}
{% set bgimage_classes = ["bg-container-" ~ item.entity.id] %}
{% endif %}
{# Sets Paragraph type, view mode, and ID as classes #}
{%
set classes = [
'paragraph',
'paragraph--type--' ~ paragraph.bundle|clean_class,
view_mode ? 'paragraph--view-mode--' ~ view_mode|clean_class,
'paragraph--id--' ~ paragraph.id.value,
]
%}
{# Merges paragraph background image media entity ID with classes. #}
{% set bgimage_field = content.field_component_background_image|render %}
{% if bgimage_field %}
{% set classes = classes|merge(bgimage_classes) %}
{% endif %}
{# Prints div with classes and contents of field_copy #}
<div{{ attributes.addClass(classes) }}>
{# YOUR CONTENT HERE #}
{% if content.field_copy|render %}
{{ content.field_copy }}
{% endif %}
</div>