mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 04:12:59 +00:00
Fixed again a problem with productpicker workflows and disabled URL rewriting (closes #232)
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
var returnTo = GetUriParam('returnto');
|
var returnTo = GetUriParam('returnto');
|
||||||
if (returnTo !== undefined)
|
if (returnTo !== undefined)
|
||||||
{
|
{
|
||||||
redirectDestination = returnTo + '?createdproduct=' + encodeURIComponent($('#name').val());
|
redirectDestination = U(returnTo) + '?createdproduct=' + encodeURIComponent($('#name').val());
|
||||||
}
|
}
|
||||||
|
|
||||||
var jsonData = $('#product-form').serializeJSON({ checkboxUncheckedValue: "0" });
|
var jsonData = $('#product-form').serializeJSON({ checkboxUncheckedValue: "0" });
|
||||||
|
Reference in New Issue
Block a user