Problem/Motivation
A collection of small improvements to improve the robustness of the 2.1.x branch.
1. Ensure we pass integers to \Drupal\node_revision_delete\NodeRevisionDeleteBatch::previousRevisionDeletionBatch()
2. Avoid division by zero if nodes are deleted while we are populating the queue
3. Do not allow negative number of revisions in the form as it makes no sense.
Proposed resolution
Tweak the code to fix these things.
Remaining tasks
User interface changes
New minimum on a form element
API changes
None
Data model changes
None
Issue fork node_revision_delete-3584706
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:
- 3584706-small-improvements
changes, plain diff MR !69
Comments
Comment #3
alexpottComment #5
alexpott