Problem/Motivation

Can not delete a queue item.

Steps to reproduce

  1. Install the Info messages module
  2. Go to /admin/config/system/queue-ui
  3. Choose a queue and click the "Inspect" button to go to /admin/config/system/queue-ui/inspect/{queueName}
  4. Choose an item in queue and try to delete it
  5. On /admin/config/system/queue-ui/{queueName}/delete/{queueItem} you will get the following error: TypeError: Drupal\queue_ui\Form\ConfirmItemDeleteForm::__construct(): Argument #1 ($messenger) must be of type Drupal\Core\Messenger\Messenger, Drupal\info_messages\InfoMessenger given

Proposed resolution

In \Drupal\queue_ui\Form\ConfirmItemDeleteForm expect \Drupal\Core\Messenger\MessengerInterface insteadof \Drupal\Core\Messenger\Messenger

CommentFileSizeAuthor
#2 queue_ui-fix-delete-3368972-2.patch1.16 KBmax-kuzomko

Issue fork queue_ui-3368972

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

max-kuzomko created an issue. See original summary.

max-kuzomko’s picture

Status: Active » Needs review
StatusFileSize
new1.16 KB

I have changed Drupal\Core\Messenger\Messenger to Drupal\Core\Messenger\MessengerInterface

voleger made their first commit to this issue’s fork.

dpi’s picture

Title: Unable to delete a queue item » Use messenger interface instead of default implementation

  • voleger committed 1d7c90d3 on 3.1.x
    Issue #3368972 by max-kuzomko: Use messenger interface instead of...
voleger’s picture

Version: 3.1.3 » 3.1.x-dev
Status: Needs review » Fixed

Fixed, thanks

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.