You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by GitBox <gi...@apache.org> on 2021/09/16 13:19:05 UTC

[GitHub] [cloudstack] SadiJr commented on a change in pull request #5454: [UI] Fixes: edit tariff quota and allow user driven backups parameter in Import Backup Offering

SadiJr commented on a change in pull request #5454:
URL: https://github.com/apache/cloudstack/pull/5454#discussion_r710109613



##########
File path: ui/src/views/offering/ImportBackupOffering.vue
##########
@@ -167,7 +167,7 @@ export default {
             params[key] = input
           }
         }
-        params.allowuserdrivenbackups = values.allowuserdrivenbackups ? values.allowuserdrivenbackups : true
+        params.allowuserdrivenbackups = values.allowuserdrivenbackups == null ? true : values.allowuserdrivenbackups

Review comment:
       This change was made to fix the reported bug of `Allow User Driven Backups` parameter.
   
   In the old code, when user set this parameter as `false`, this check, as it is a ternary operation, it always ended up sending the parameter as `true`.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@cloudstack.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org