Form field for new author value missing

Created on 29 January 2025, 2 months ago

Problem/Motivation

After installing the module, configuring Author bulk assignment settings, and enabling the "Assign content item to author" in views bulk operations, the option select load on the page but there is no place to define to destination author.

Steps to reproduce

  1. Install module
  2. Configure in /admin/config/content/author-bulk-assignment to allow for content node entities
  3. Edit the Content view (/admin/content)
  4. Add Views Bulk Operations field, check "Assign content item to author," and select "Add confirmation step" (so you can see the real error)
  5. Go to /admin/content and attempt to use, notice no author definition field
  6. Go through confirmation
  7. See error:
    Error: Typed property Drupal\author_bulk_assignment\Plugin\Action\AuthorAssignmentBulkAction::$assigneeId must not be accessed before initialization in Drupal\author_bulk_assignment\Plugin\Action\AuthorAssignmentBulkAction->execute() (line 32 of modules/contrib/author_bulk_assignment/src/Plugin/Action/AuthorAssignmentBulkAction.php).

Proposed resolution

Expose an accompanying field to define the new author.

πŸ› Bug report
Status

Active

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States karenann

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

Comments & Activities

Production build 0.71.5 2024