-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to set default boolean USER_INPUTS value to YES #5107
Comments
Note that I manually patched Sunstone to fix #4946, it may be related. Regards. |
I have a different behaviour between the
Regards. |
tinova
pushed a commit
to OpenNebula/docs
that referenced
this issue
Oct 1, 2020
That will be fixed in the next release, you can patch manually: diff --git a/src/sunstone/public/app/utils/user-inputs.js b/src/sunstone/public/app/utils/user-inputs.js
index 8c83f8029..b70b12099 100644
--- a/src/sunstone/public/app/utils/user-inputs.js
+++ b/src/sunstone/public/app/utils/user-inputs.js
@@ -855,7 +855,7 @@ define(function(require) {
var id = UniqueId.id();
if(value == "YES"){
input = "<br>" + Locale.tr("YES ") + "<input style='margin-right: 20px' checked type='radio' name='bool_" +id + "' value='YES'" + wizard_field + " " + required + "/>";
- input += Locale.tr("NO ") + "<input type='radio' name='bool_" + id + "\" value='NO'" + wizard_field + " " + required + "/>";
+ input += Locale.tr("NO ") + "<input type='radio' name='bool_" + id + "' value='NO'" + wizard_field + " " + required + "/>";
} else if(value == "NO"){
input = "<br>" + Locale.tr("YES ") + "<input style='margin-right: 20px' type='radio' name='bool_" + id + "' value='YES'" + wizard_field + " " + required + "/>";
input += Locale.tr("NO ") + "<input checked type='radio' name='bool_" + id + "' value='NO'" + wizard_field + " " + required + "/>" |
Thanks a lot @sbbarragan, @tinova. I patched my Sunstone and it's working. |
rsmontero
pushed a commit
that referenced
this issue
Oct 6, 2020
rsmontero
pushed a commit
that referenced
this issue
Oct 6, 2020
rsmontero
pushed a commit
that referenced
this issue
Oct 7, 2020
rsmontero
pushed a commit
that referenced
this issue
Jan 20, 2021
rsmontero
pushed a commit
that referenced
this issue
Apr 13, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
We set up some template with some boolean
USER_INPUTS
like explained in the documentation but sunstone eith:To Reproduce
USER_INPUTS
, Sunstone produce the following:Expected behavior
The VM should instanciate without any issue and the
DEFTRUE
context valiable should be set toYES
Details
Additional context
NO
like:|
seems to be missing between<desc>
and<default>
since it describe the boolean as:Regards.
Progress Status
The text was updated successfully, but these errors were encountered: