Download & Extend

Ensure that conditions work with no context available

Project:Drupal core
Version:8.x-dev
Component:plugin system
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

Just clicking around today I noticed that the conditions don't work if you don't have any nodes.
I realize this is an edge case, but if people start mimicking core conditions, they'll hit more realistic bugs.

I'll check through other plugins to see if they need similar treatment.

AttachmentSizeStatusTest resultOperations
node-condition-FAIL.patch1007 bytesIdleFAILED: [[SimpleTest]]: [MySQL] 52,627 pass(es), 0 fail(s), and 1 exception(s).View details | Re-test
node-condition-PASS.patch1.7 KBIdlePASSED: [[SimpleTest]]: [MySQL] 52,613 pass(es).View details | Re-test
nobody click here