Skip to content

Commit a1bdea5

Browse files
author
Jessica Wang
committed
cloudstack 3.0 new UI - template page, ISO page - search - do not pass keyword parameter to API if its value is empty.
1 parent e234d10 commit a1bdea5

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎ui/scripts/templates.js‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,8 @@
479479
if(args.filterBy.search != null && args.filterBy.search.by != null && args.filterBy.search.value != null) {
480480
switch(args.filterBy.search.by) {
481481
case "name":
482-
array1.push("&keyword=" + args.filterBy.search.value);
482+
if(args.filterBy.search.value.length > 0)
483+
array1.push("&keyword=" + args.filterBy.search.value);
483484
break;
484485
}
485486
}
@@ -1185,7 +1186,8 @@
11851186
if(args.filterBy.search != null && args.filterBy.search.by != null && args.filterBy.search.value != null) {
11861187
switch(args.filterBy.search.by) {
11871188
case "name":
1188-
array1.push("&keyword=" + args.filterBy.search.value);
1189+
if(args.filterBy.search.value.length > 0)
1190+
array1.push("&keyword=" + args.filterBy.search.value);
11891191
break;
11901192
}
11911193
}

0 commit comments

Comments
 (0)