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

Merge branch 'next-1.x' into '1.x'

fix(ShippingRules): remove buttons attribute from options

See merge request !37
Übergeordnete 5e04a7b8 054c2b21
No related branches found
Tags 1.4.8
1 Merge Request!37fix(ShippingRules): remove buttons attribute from options
Pipeline #9449 mit Warnungen bestanden mit Phasen
in 53 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