mirror of https://github.com/apache/cloudstack.git
cloudstack 3.0 new UI - template page, ISO page - search - do not pass keyword parameter to API if its value is empty.
This commit is contained in:
parent
e234d101a2
commit
a1bdea5404
|
|
@ -479,7 +479,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;
|
||||
}
|
||||
}
|
||||
|
|
@ -1185,7 +1186,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