Merge branch 'ent-13653-17479-Mensaje-equivocado-al-borrar-SO' into 'develop'

Ent 13653 17479 mensaje equivocado al borrar so

See merge request artica/pandorafms!7315
This commit is contained in:
Matias Didier 2024-04-30 14:48:06 +00:00
commit d0e18b940d
2 changed files with 9 additions and 2 deletions

View File

@ -219,7 +219,9 @@ echo '<div id="aux" class="invisible"></div>';
$('#aux').text('<?php echo __('Not deleted. Error deleting data'); ?>'); $('#aux').text('<?php echo __('Not deleted. Error deleting data'); ?>');
} else { } else {
$('#aux').dialog('close'); $('#aux').dialog('close');
location.reload(); let url = new URL(window.location.href);
url.searchParams.set('message', r.url_message)
window.location.href = url.href;
} }
}, },
error: function(e) { error: function(e) {

View File

@ -60,7 +60,12 @@ if ($method === 'deleteOS') {
) { ) {
echo json_encode(['deleted' => false]); echo json_encode(['deleted' => false]);
} else { } else {
echo json_encode(['deleted' => true]); echo json_encode(
[
'deleted' => true,
'url_message' => 6,
]
);
} }
} }