Array flags can be non-ordered
This commit is contained in:
parent
dbf1985d25
commit
0e36a850cf
5 changed files with 22 additions and 5 deletions
|
@ -294,7 +294,10 @@ angular.module("FICApp", ["ngRoute", "ngSanitize"])
|
|||
flag.values.splice(i, 1);
|
||||
}
|
||||
|
||||
flag.value = flag.values.join(flag.separator) + flag.separator;
|
||||
if (flag.ignoreorder)
|
||||
flag.value = flag.values.slice().sort().join(flag.separator) + flag.separator;
|
||||
else
|
||||
flag.value = flag.values.join(flag.separator) + flag.separator;
|
||||
|
||||
if (flag.values.length == 0)
|
||||
flag.values = [""];
|
||||
|
|
Reference in a new issue