Force to update data module synthetic when module created with CLI. Tiquet: #3034

This commit is contained in:
m-lopez-f 2016-01-27 15:43:06 +01:00
parent 36f955a491
commit 7627b91c88
1 changed files with 2 additions and 1 deletions

View File

@ -3300,7 +3300,8 @@ sub cli_create_synthetic() {
$module->{'custom_integer_1'} = 0;
$module->{'custom_integer_2'} = 0;
$module->{'prediction_module'} = 3; # Synthetic code is 3
$module->{'flag'} = 1;
my $id_agent = int(get_agent_id($dbh,$agent_name));
if ($id_agent > 0) {