mirror of https://github.com/apache/cloudstack.git
cloudstack 3.0 new UI - instance page - search - do not pass keyword parameter to API if its value is empty.
This commit is contained in:
parent
e1cf8e4933
commit
bb04f6feeb
|
|
@ -730,7 +730,8 @@
|
|||
if(args.filterBy.search != null && args.filterBy.search.by != null && args.filterBy.search.value != null) {
|
||||
switch(args.filterBy.search.by) {
|
||||
case "name":
|
||||
array1.push("&keyword=" + args.filterBy.search.value);
|
||||
if(args.filterBy.search.value.length > 0)
|
||||
array1.push("&keyword=" + args.filterBy.search.value);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue