Projekt

Allgemein

Aktionen

GX-Bug #64474

geschlossen

The parseJSON Method from jQuery throws errors all over the Shop

Von Julian Heckmann vor mehr als 5 Jahren hinzugefügt. Vor etwa 5 Jahren aktualisiert.

Status:
Erledigt
Priorität:
Hoch
Zugewiesen an:
Marvin Muxfeld
Kategorie:
Core
Zielversion:
% erledigt:

100%

Geschätzter Aufwand:
Steps to reproduce:
Betroffene Versionen:
3.15.1.0
Release Notes Langtext:

Die Methode parseJSON wird jetzt vor der Verwendung überprüft.


Beschreibung

in multiple tickets, there were issues with parsing the response from the ajax request.

Examples:
https://tracker.gambio-server.net/issues/55652
https://tracker.gambio-server.net/issues/63466

This has something too with the parseJSON method from jQuery, the method call itself is unnecessary because the response is already parsed and will throw an error if you try to parse it again.

With the removal of the line
"response = $.parseJSON(response);"
The error is gone.


Checkliste 0/0

Aktionen #1

Von Julian Heckmann vor mehr als 5 Jahren aktualisiert

It seems like the error is only shown in firefox when the console is closed, but the functionality of the js is still broken in chrome.

After analyzing a little bit with Ronald, it seems that it is a cache issue, because if you have the console open it won't appear.

Aktionen