Commit d31cd87b authored by loze's avatar loze Committed by paulocs

Issue #3045666 by vidorado, loze, bircher, bzoks, nace_fric, ronaldmulero,...

Issue #3045666 by vidorado, loze, bircher, bzoks, nace_fric, ronaldmulero, DeaOm, paulocs: Remaining conditions not being evaluated when failing to apply a context to a previous condition
parent 45261a4e
......@@ -309,19 +309,20 @@ class ContextManager {
*/
protected function applyContexts(ConditionPluginCollection &$conditions) {
$passed = FALSE;
foreach ($conditions as $condition) {
if ($condition instanceof ContextAwarePluginInterface) {
try {
$contexts = $this->contextRepository->getRuntimeContexts(array_values($condition->getContextMapping()));
$this->contextHandler->applyContextMapping($condition, $contexts);
$passed = TRUE;
}
catch (ContextException $e) {
return FALSE;
continue;
}
}
}
return TRUE;
return $passed;
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment