Creating a comment from a field in a view takes me to the admin edit page for that entity.

Created on 5 August 2024, 5 months ago

Problem/Motivation

As per: https://www.drupal.org/project/ajax_comments/issues/3419586#comment-1570... πŸ› Customizations for comment delete form interfere with Core's delete modal in the admin UI Needs review

It'd be nice to be able to have comments associated with a data focused entity (using the storage contrib module) in a view. There is no direct view page for the entity, it just gets used in views.

I would expect for the comment to just show up on the page using Ajax. Applying further patches stopped the redirect to the edit page, but the page still required a manual refresh for comments to show up.

Steps to reproduce

If I add a comment field to the entity, and then add that field to the view I get the traditional interface - add a comment, view existing comments, etc. If I add a comment, this takes me to the edit page in the admin interface for that entity. ala /storage/1234/edit/

Thoughts

This may be related to this module not working outside of default view modes as per "Ajax not working when using non-default view mode" https://www.drupal.org/project/ajax_comments/issues/2896916 πŸ› Ajax not working when using non-default view mode. Needs work

πŸ› Bug report
Status

Active

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States erutan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @erutan
  • It seems like you're having trouble with comments not showing up in views without a manual refresh. This might be related to the storage contrib module My Results ATT not working well with non-default view modes. To fix this, ensure your modules are up-to-date, consider writing custom code to handle AJAX functionality, look into alternative modules that better support comments in views, or seek advice from the Drupal community for a more tailored solution.

Production build 0.71.5 2024