This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch 4.15
in repository https://gitbox.apache.org/repos/asf/cloudstack.git


The following commit(s) were added to refs/heads/4.15 by this push:
     new a5e53dc  ui: fix autogen form exec with action mapping options (#4909)
a5e53dc is described below

commit a5e53dc5c7f9a6e2c7119ac8ccf4de7d50293de3
Author: Abhishek Kumar <[email protected]>
AuthorDate: Wed Apr 21 13:01:29 2021 +0530

    ui: fix autogen form exec with action mapping options (#4909)
    
    For an auto-generated form, with list mapping of action, mapped API 
parameter was not getting added to the request when first index from the list 
is selected. Change added to fix this.
    
    Signed-off-by: Abhishek Kumar <[email protected]>
    
    Co-authored-by: Rohit Yadav <[email protected]>
---
 ui/src/views/AutogenView.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ui/src/views/AutogenView.vue b/ui/src/views/AutogenView.vue
index 795a5d8..dd92d72 100644
--- a/ui/src/views/AutogenView.vue
+++ b/ui/src/views/AutogenView.vue
@@ -989,7 +989,7 @@ export default {
               }
               break
             }
-            if (!input && !['tags'].includes(key)) {
+            if (!input && input !== 0 && !['tags'].includes(key)) {
               continue
             }
             if (action.mapping && key in action.mapping && 
action.mapping[key].options) {

Reply via email to