Skip to content
Snippets Groups Projects
Commit a186387a authored by Tim Bozeman's avatar Tim Bozeman Committed by Tim Bozeman
Browse files

Issue #3308354 by Tim Bozeman: Set a default variant delta

parent d2c95dff
Branches
Tags
Loading
......@@ -497,6 +497,10 @@ class EntityLocationHandler extends EntityHandlerBase {
else {
$delta = \count($variants);
}
if (!isset($delta)) {
// Let's set a default delta in the case we can't find one such as listing variations in another workspace.
$delta = 0;
}
return "$langcode-$delta";
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment