Problem/Motivation

When you start the batch task with no existing nodes for the selected content type, the page just reloads en nothing happens.
It would be nice to add a warning with an info message.

Steps to reproduce

  1. If there are nodes for the selected content type, remove all of them.
  2. Start the batch task for the content type with no existing nodes.

Proposed resolution

Check with an if statement if there are nodes, if not show a message.

Remaining tasks

Add an if statement to check if there are nodes.

User interface changes

None.

API changes

None.

Data model changes

None.

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

matdemeue created an issue. See original summary.

matdemeue’s picture

I'll give this one a try.

matdemeue’s picture

Status: Active » Needs review

Please review my fix for this issue.

matdemeue’s picture

Assigned: matdemeue » Unassigned
Status: Needs review » Reviewed & tested by the community

Reviewed together with Tim.

  • matdemeue committed dcd1201 on 1.0.x
    Issue #3307768 by matdemeue: When you start a batch with no existing...
matdemeue’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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