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:
commit
b89a860ba7
|
@ -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()]
|
||||||
|
|
Loading…
Reference in New Issue