diff --git a/ChangeLog b/ChangeLog index 283b8fc5146..375e298a72e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -134,6 +134,7 @@ NEW: Use lang selector when using a field key 'lang' in modulebuilder NEW: we need to be able to put more filters on deleteByParentField() function NEW: make it easier to set the `keyword`, `keywords` and `description` attributes of an ecm file object NEW: Experimental feature to manage user sessions in database +NEW: Hidden option API_DISABLE_COMPRESSION is now visible in API setup page. Following changes may create regressions for some external modules, but were necessary to make Dolibarr better: diff --git a/htdocs/api/admin/index.php b/htdocs/api/admin/index.php index 54e24de8263..82486e836bc 100644 --- a/htdocs/api/admin/index.php +++ b/htdocs/api/admin/index.php @@ -38,7 +38,7 @@ if (!$user->admin) { $action = GETPOST('action', 'aZ09'); -//Activate ProfId +// Activate Production mode if ($action == 'setproductionmode') { $status = GETPOST('status', 'alpha'); @@ -69,6 +69,18 @@ if ($action == 'setproductionmode') { } } +// Disable compression mode +if ($action == 'setdisablecomprssion') { + $status = GETPOST('status', 'alpha'); + + if (dolibarr_set_const($db, 'API_DISABLE_COMPRESSION', $status, 'chaine', 0, '', 0) > 0) { + header("Location: ".$_SERVER["PHP_SELF"]); + exit; + } else { + dol_print_error($db); + } +} + if ($action == 'save') { dolibarr_set_const($db, 'API_RESTRICT_ON_IP', GETPOST('API_RESTRICT_ON_IP', 'alpha')); } @@ -116,6 +128,21 @@ if ($production_mode) { print '