Merge pull request #16513 from AlexisLaurier/develop
Avoid loss of data on RELOAD_PAGE_ON_CUSTOMER_CHANGE_DISABLED
This commit is contained in:
commit
1756d2833c
@ -1570,7 +1570,8 @@ if ($action == 'create') {
|
|||||||
console.log("We have changed the company - Reload page");
|
console.log("We have changed the company - Reload page");
|
||||||
var socid = $(this).val();
|
var socid = $(this).val();
|
||||||
// reload page
|
// 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>';
|
</script>';
|
||||||
|
|||||||
@ -1580,7 +1580,8 @@ if ($action == 'create' && $usercancreate) {
|
|||||||
console.log("We have changed the company - Reload page");
|
console.log("We have changed the company - Reload page");
|
||||||
var socid = $(this).val();
|
var socid = $(this).val();
|
||||||
// reload page
|
// 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>';
|
</script>';
|
||||||
|
|||||||
@ -387,7 +387,8 @@ if ($action == 'create') {
|
|||||||
var socid = $(this).val();
|
var socid = $(this).val();
|
||||||
var fac_rec = $(\'#fac_rec\').val();
|
var fac_rec = $(\'#fac_rec\').val();
|
||||||
// reload page
|
// 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>';
|
</script>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user