Update card.php

Fix bug when you create a supplier order from a project to keep the project when you select the supplier (Option RELOAD_PAGE_ON_SUPPLIER_CHANGE)
This commit is contained in:
Je2fb 2021-12-23 22:47:30 +01:00 committed by GitHub
parent 4eb9a7625a
commit 369d125002
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1649,8 +1649,9 @@ if ($action == 'create') {
$(document).ready(function() {
$("#socid").change(function() {
var socid = $(this).val();
var prjid = $("#projectid").val();
// reload page
window.location.href = "'.$_SERVER["PHP_SELF"].'?action=create&socid="+socid;
window.location.href = "'.$_SERVER["PHP_SELF"].'?action=create&socid="+socid+"&projectid="+prjid
});
});
</script>';