Merged in bugfix/HOR-3419 (pull request #5757)
HOR-3419 Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
@@ -1864,6 +1864,14 @@ class G
|
|||||||
|
|
||||||
$arrayGrid = array_unique($arrayGrid);
|
$arrayGrid = array_unique($arrayGrid);
|
||||||
|
|
||||||
|
//Given the set: 'valueOne', 'valueOneTwo', where the second string
|
||||||
|
//contains the first string, this causes the larger string to take
|
||||||
|
//the second, resulting in a delimitation error, to avoid this problem
|
||||||
|
//we first search the string larger size.
|
||||||
|
usort($arrayGrid, function($a, $b) {
|
||||||
|
return strlen($b) - strlen($a);
|
||||||
|
});
|
||||||
|
|
||||||
foreach ($arrayGrid as $index => $value) {
|
foreach ($arrayGrid as $index => $value) {
|
||||||
if($value !== "") {
|
if($value !== "") {
|
||||||
$grdName = $value;
|
$grdName = $value;
|
||||||
|
|||||||
Reference in New Issue
Block a user