Ramon in my computer: Fixed the function 'cli_add_event_comment'. Ticket: #1456

This commit is contained in:
mdtrooper 2014-10-15 17:02:49 +02:00
parent 4fd4118828
commit a483f68336
1 changed files with 12 additions and 10 deletions

View File

@ -2741,8 +2741,10 @@ sub cli_add_event_comment() {
}
else {
$decoded_comment = decode_json($current_comment);
push $decoded_comment, @additional_comment;
$update->{'user_comment'} = encode_json $decoded_comment;
push(@{$decoded_comment}, @additional_comment);
$update->{'user_comment'} = encode_json($decoded_comment);
}
pandora_update_event_from_hash ($update, 'id_evento', $id_event, $dbh);