Fixed: BIG AMOUNT of Lehrauftrage not causing POST param limit issue anymore

Before the number of params was overflowing POST param limitation of 1000.
Now data is json stringified on clientside to pack all data in only one
string. Adaptations were done also on serverside.
This commit is contained in:
Cris
2019-10-24 15:57:50 +02:00
committed by hainberg
parent 9d0944b717
commit 30ef50fa4c
5 changed files with 52 additions and 41 deletions
@@ -627,13 +627,22 @@ $(function() {
return;
}
/*
* Prepare data object for ajax call
* NOTE: Stringify to send only ONE post param (json string) instead of many single post params.
* This avoids issues with POST param limitation.
*/
var data = {
'selected_data': JSON.stringify(selected_data)
};
FHC_AjaxClient.ajaxCallPost(
FHC_JS_DATA_STORAGE_OBJECT.called_path + "/approveLehrauftrag",
selected_data,
data,
{
successCallback: function (data, textStatus, jqXHR)
{
if (data.retval != null)
if (!data.error && data.retval != null)
{
// Update status 'Erteilt'
$('#filterTabulator').tabulator('updateData', data.retval);
@@ -656,9 +656,13 @@ $(function() {
return;
}
// Prepare data object for ajax call
/*
* Prepare data object for ajax call
* NOTE: Stringify to send only ONE post param (json string) instead of many single post params.
* This avoids issues with POST param limitation.
*/
var data = {
'selected_data': selected_data
'selected_data': JSON.stringify(selected_data)
};
FHC_AjaxClient.ajaxCallPost(