Skip to content
Snippets Groups Projects
Commit 89005dfb authored by Kevin Paxman's avatar Kevin Paxman
Browse files

Merge branch 'feature/ISTWCMS-7164-kpaxman-fix_manual_sort' into '1.1.x'

ISTWCMS-7164: fix manual block weight sorting issue introduced with ISTWCMS-6948.

See merge request !254
parents 9105ada6 23ebd4de
No related branches found
No related tags found
1 merge request!254ISTWCMS-7164: fix manual block weight sorting issue introduced with ISTWCMS-6948.
......@@ -214,6 +214,10 @@ class UwCblManualList extends BlockBase implements ContainerFactoryPluginInterfa
// Counter to be used for weight.
$counter = 0;
// Ensure weight items are in order of weight.
// Without this they are in the originally listed order.
ksort($weight_items);
// Step through all the weighted items and check if
// there is more than one, and if so, sort by title.
foreach ($weight_items as $weight_item) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment