2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 05:25:42 +00:00

Correctly handle serialization of newly created stock

This commit is contained in:
Oliver
2021-11-04 23:18:59 +11:00
parent 3be4acf3ef
commit b41dbba2b0
2 changed files with 26 additions and 1 deletions

View File

@ -115,6 +115,10 @@ function canDelete(OPTIONS) {
*/
function getApiEndpointOptions(url, callback) {
if (!url) {
return;
}
// Return the ajax request object
$.ajax({
url: url,
@ -727,6 +731,8 @@ function submitFormData(fields, options) {
break;
default:
$(options.modal).modal('hide');
console.log(`upload error at ${options.url}`);
showApiError(xhr, options.url);
break;
}