Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
956a2842
Commit
956a2842
authored
Apr 27, 2018
by
JanFontanet
Browse files
[#678]volatile_clones overwrite fixed
parent
8110ca0f
Changes
2
Hide whitespace changes
Inline
Side-by-side
rvd_front.pl
View file @
956a2842
...
...
@@ -1459,12 +1459,12 @@ sub settings_machine {
}
for
my
$option
(
qw(description run_timeout volatile_clones)
)
{
if
(
defined
$c
->
param
(
$option
)
)
{
if
(
defined
$c
->
param
(
$option
)
&&
defined
$c
->
param
("
submitbtn
")
)
{
my
$value
=
$c
->
param
(
$option
);
$value
*=
60
if
$option
eq
'
run_timeout
';
$domain
->
set_option
(
$option
,
$value
);
$c
->
stash
(
message
=>
"
\U
$option
changed!
");
}
elsif
(
$option
eq
'
volatile_clones
'
)
{
}
elsif
(
$option
eq
'
volatile_clones
'
&&
defined
$c
->
param
("
submitbtn
")
)
{
my
$value
=
'
0
';
$domain
->
set_option
(
$option
,
$value
);
$c
->
stash
(
message
=>
"
\U
$option
changed!
");
...
...
templates/main/vm_options.html.ep
View file @
956a2842
...
...
@@ -43,7 +43,7 @@
Clones created from this machine will be removed on shutdown.
</div>
</div>
<input type="submit">
<input type="submit"
name="submitbtn"
>
<button type="reset" >Cancel</button>
</form>
</div><!-- of form-group -->
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment