Commit c346238d authored by Matthieu Muffato's avatar Matthieu Muffato Committed by ens-bwalts
Browse files

Clear error message if the tweak attemps to change the dbID

parent 3620c2bb
......@@ -854,6 +854,11 @@ sub apply_tweaks {
$need_write = 1;
}
}
} elsif( $attrib_name eq 'dbID' ) {
$tweakStructure->{Error} = TWEAK_ERROR_MSG->{ACTION_ERROR};
push @response, "Tweak.Error \tChanging the dbID of an Analysis is not supported\n";
} elsif($analysis->can($attrib_name)) {
my $old_value = stringify($analysis->$attrib_name());
$tweakStructure->{Return}->{OldValue} = $old_value;
......
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