Description
After an AJAX request in Javascript the method _AjaxResponse.replaceHtmlItem() is called which raises an error if the item to be replaced is not found. Here the method _raiseError() is called without the 'new Error()' as first argument as in all other occurrences:
throw this._raiseError(_Lang.getMessage("ERR_ITEM_ID_NOTFOUND", null, "_AjaxResponse.replaceHtmlItem", (itemIdToReplace) ? itemIdToReplace.toString() : "undefined"));
This works:
throw this._raiseError(new Error(), _Lang.getMessage("ERR_ITEM_ID_NOTFOUND", null, "_AjaxResponse.replaceHtmlItem", (itemIdToReplace) ? itemIdToReplace.toString() : "undefined"), "replaceHtmlItem");