Create module message error correction

This commit is contained in:
Jonathan 2023-03-17 12:15:10 +01:00
parent f83acb99f0
commit dfbdfbaf60
2 changed files with 51 additions and 54 deletions

View File

@ -1907,7 +1907,6 @@ if ($create_module) {
); );
} }
if ($update_module || $create_module) {
if (is_error($id_agent_module) === true) { if (is_error($id_agent_module) === true) {
switch ($id_agent_module) { switch ($id_agent_module) {
case ERR_EXIST: case ERR_EXIST:
@ -1966,7 +1965,6 @@ if ($create_module) {
); );
} }
} }
}
// MODULE ENABLE/DISABLE // MODULE ENABLE/DISABLE
// =====================. // =====================.

View File

@ -1117,7 +1117,7 @@ $modalCreateModule .= html_print_div(
'class' => 'action-buttons-right-forced', 'class' => 'action-buttons-right-forced',
'content' => html_print_submit_button( 'content' => html_print_submit_button(
__('Create'), __('Create'),
'create_module', 'modal_button_create',
false, false,
[ [
'icon' => 'next', 'icon' => 'next',
@ -1142,7 +1142,6 @@ html_print_div(
<script type="text/javascript"> <script type="text/javascript">
function create_module_dialog(){ function create_module_dialog(){
console.log('Entra');
$('#modal').dialog({ $('#modal').dialog({
title: '<?php echo __('Create Module'); ?>', title: '<?php echo __('Create Module'); ?>',
resizable: true, resizable: true,