make sure that RDN attributes have correct order
This commit is contained in:
parent
4a4907a63a
commit
b68a6064ba
|
@ -145,10 +145,13 @@ function getRDNAttributes($scope) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// merge arrays
|
// merge arrays
|
||||||
$return = $attrs_high;
|
$return = array_values(array_unique($attrs_high));
|
||||||
for ($i = 0; $i < sizeof($attrs_normal); $i++) $return[] = $attrs_normal[$i];
|
for ($i = 0; $i < sizeof($attrs_normal); $i++) {
|
||||||
for ($i = 0; $i < sizeof($attrs_low); $i++) $return[] = $attrs_low[$i];
|
if (!in_array($attrs_normal[$i], $return)) $return[] = $attrs_normal[$i];
|
||||||
$return = array_values(array_unique($return));
|
}
|
||||||
|
for ($i = 0; $i < sizeof($attrs_low); $i++) {
|
||||||
|
if (!in_array($attrs_low[$i], $return)) $return[] = $attrs_low[$i];
|
||||||
|
}
|
||||||
return $return;
|
return $return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue