Skip to content
Code-Schnipsel Gruppen Projekte
Commit 5b650778 erstellt von Michael Danielczok's avatar Michael Danielczok
Dateien durchsuchen

Merge branch 'next-2.x' into 'main'

fix(ShippingRules): remove buttons attribute from options

See merge request !36
Übergeordnete bd8e7972 d4e51b0d
No related branches found
Tags 2.0.8
3 Merge Requests!43Update 'next-3.x' with latest changes from 'main',!36fix(ShippingRules): remove buttons attribute from options,!32Add QUIQQER Tooling
Pipeline #9447 mit Warnungen bestanden mit Phasen
in 55 Sekunden
......@@ -25,10 +25,16 @@ define('package/quiqqer/shipping/bin/backend/classes/ShippingRules', [
* @return {Promise|*}
*/
getList: function (options) {
// workaround for https://dev.quiqqer.com/quiqqer/shipping/-/issues/52
const optionsWithoutButtons = Object.assign({}, options);
if (typeof optionsWithoutButtons['buttons'] !== 'undefined') {
delete optionsWithoutButtons['buttons'];
}
return new Promise(function (resolve, reject) {
QUIAjax.get('package_quiqqer_shipping_ajax_backend_rules_getList', resolve, {
'package': 'quiqqer/shipping',
options : JSON.encode(options),
options : JSON.encode(optionsWithoutButtons),
onError : reject
});
});
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren