diff --git a/pandora_console/include/javascript/pandora_dashboards.js b/pandora_console/include/javascript/pandora_dashboards.js index 7cfbf40e9c..f4168f2bd9 100644 --- a/pandora_console/include/javascript/pandora_dashboards.js +++ b/pandora_console/include/javascript/pandora_dashboards.js @@ -458,12 +458,13 @@ function initialiceLayout(data) { }*/ function configurationWidget(cellId, widgetId, size) { + title = $("#hidden-widget_name_" + cellId).val(); load_modal({ target: $("#modal-config-widget"), form: "form-config-widget", url: data.url, modal: { - title: "Configure widget", + title: "Configure widget " + title, cancel: "Cancel", ok: "Ok" }, diff --git a/pandora_console/views/dashboard/cell.php b/pandora_console/views/dashboard/cell.php index 7816f79351..5b4e7f311e 100644 --- a/pandora_console/views/dashboard/cell.php +++ b/pandora_console/views/dashboard/cell.php @@ -64,6 +64,8 @@ if ($manageDashboards !== 0 || $writeDashboards !== 0) { $output .= ' '; $output .= ''; + $widget_description = db_get_value_sql('SELECT description FROM twidget WHERE id ='.$cellData['id_widget']); + $output .= html_print_input_hidden('widget_name_'.$cellData['id'], $widget_description, true); $output .= html_print_image( 'images/configuration@svg.svg', true,