Commit 956a2842 authored by JanFontanet's avatar JanFontanet
Browse files

[#678]volatile_clones overwrite fixed

parent 8110ca0f
......@@ -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!");
......
......@@ -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 -->
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment