Merge pull request #16513 from AlexisLaurier/develop

Avoid loss of data on RELOAD_PAGE_ON_CUSTOMER_CHANGE_DISABLED
This commit is contained in:
Laurent Destailleur 2021-03-02 19:15:22 +01:00 committed by GitHub
commit 1756d2833c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View File

@ -1570,7 +1570,8 @@ if ($action == 'create') {
console.log("We have changed the company - Reload page");
var socid = $(this).val();
// reload page
window.location.href = "'.$_SERVER["PHP_SELF"].'?action=create&socid="+socid+"&ref_client="+$("input[name=ref_client]").val();
$("input[name=action]").val("create");
$("form[name=addprop]").submit();
});
});
</script>';

View File

@ -1580,7 +1580,8 @@ if ($action == 'create' && $usercancreate) {
console.log("We have changed the company - Reload page");
var socid = $(this).val();
// reload page
window.location.href = "'.$_SERVER["PHP_SELF"].'?action=create&socid="+socid+"&ref_client="+$("input[name=ref_client]").val();
$("input[name=action]").val("create");
$("form[name=crea_commande]").submit();
});
});
</script>';

View File

@ -387,7 +387,8 @@ if ($action == 'create') {
var socid = $(this).val();
var fac_rec = $(\'#fac_rec\').val();
// reload page
window.location.href = "'.$_SERVER["PHP_SELF"].'?action=create&socid="+socid+"&fac_rec="+fac_rec;
$("input[name=action]").val("create");
$("form[name=add]").submit();
});
});
</script>';