There is already check, but it only for single node, for example WHERE n.nid='123'

// When loading specific nodes, language conditions shouldn't apply.
if (preg_match("/WHERE.*\s$primary_table.nid\s*=\s*(\d|%d)/", $query)) return;

Add check for multiple nodes, WHERE n.nid in ('123', '456')

Comments

matulis’s picture

Should be smth like

if (preg_match("/WHERE.*\s$primary_table.nid\s*in\s*\((\d|%d)\)/", $query)) return;
Jose Reyero’s picture

Component: Code » Blocks
Category: feature » bug

Let's call this a bug.

joseph.olstad’s picture

Issue summary: View changes
Status: Active » Closed (outdated)