Merge branch 'ent-6969-bug-refresco-eventos' into 'develop'

Fixed mixed response from event datatables

See merge request artica/pandorafms!3952
This commit is contained in:
Daniel Rodriguez 2021-04-07 10:55:25 +00:00
commit b89a860ba7
1 changed files with 5 additions and 0 deletions

View File

@ -415,6 +415,11 @@ if (is_ajax()) {
] ]
); );
$response = ob_get_clean(); $response = ob_get_clean();
// Clean output buffer.
while (ob_get_level() !== 0) {
ob_end_clean();
}
} catch (Exception $e) { } catch (Exception $e) {
echo json_encode( echo json_encode(
['error' => $e->getMessage()] ['error' => $e->getMessage()]