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

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


The following commit(s) were added to refs/heads/4.19 by this push:
     new ee1cd91e988 fixed an issue where requests to the api createDomain were 
being sent with the field networkdomain as an empty string whenever the user 
typed something in the form and cleared it causing an exception (#9637)
ee1cd91e988 is described below

commit ee1cd91e988a470a932d2dd7a5bf5484ffe1c15f
Author: Felipe <[email protected]>
AuthorDate: Fri Sep 20 04:59:38 2024 -0300

    fixed an issue where requests to the api createDomain were being sent with 
the field networkdomain as an empty string whenever the user typed something in 
the form and cleared it causing an exception (#9637)
---
 ui/src/views/iam/DomainActionForm.vue | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/ui/src/views/iam/DomainActionForm.vue 
b/ui/src/views/iam/DomainActionForm.vue
index 4d7c727d49e..ab53a5974e4 100644
--- a/ui/src/views/iam/DomainActionForm.vue
+++ b/ui/src/views/iam/DomainActionForm.vue
@@ -237,6 +237,11 @@ export default {
 
         const resourceName = params.displayname || params.displaytext || 
params.name || this.resource.name
         let hasJobId = false
+        Object.keys(params).forEach(key => {
+          if (params[key] === '') {
+            delete params[key]
+          }
+        })
         api(this.action.api, params).then(json => {
           for (const obj in json) {
             if (obj.includes('response')) {

Reply via email to