Skip to content

Commit

Permalink
delete author_id value in params
Browse files Browse the repository at this point in the history
  • Loading branch information
Mary-Clb committed Feb 1, 2024
1 parent 57f47aa commit fa20123
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/Host.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,6 @@ public function setDowntime(int $id, array $params)
$params['duration'] = filter_var($params['duration'], FILTER_VALIDATE_INT);
}
unset($params['time_select']);
unset($params['author_id']);
\Toolbox::logDebug($params);
$api = new ApiClient();
$res = $api->connectionRequest();
if (isset($res["security"]["token"])) {
Expand Down
2 changes: 0 additions & 2 deletions templates/host.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
<div class="modal-body d-flex justify-content-start align-items-center">
<div class="me-3">
<label class="form-check">
{{ fields.hiddenField('author_id', '') }}
<input type="hidden" name="is_fixed" value="false">
<input type="checkbox" class="form-check-input" id="is_fixed" name="is_fixed" value="true" checked/>
<span class="form-check-label">{{ __('fixed', 'centreon') }}</span>
Expand Down Expand Up @@ -301,7 +300,6 @@
$('#duration_select').toggle();
});
$('#submit').click(function(){
$('input[name=author_id]').val( {{ uid }} );
var textarea = $.trim($('#comment').val());
if(textarea != "") {
$('#comment').val(textarea);
Expand Down

0 comments on commit fa20123

Please sign in to comment.