avoid lost of data for RELOAD_PAGE_ON_CUSTOMER_CHANGE_DISABLED

This commit is contained in:
Alexis LAURIER 2021-03-02 15:59:48 +01:00
parent 007ae59788
commit e219972936
3 changed files with 6 additions and 3 deletions

View File

@ -1524,7 +1524,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

@ -1576,7 +1576,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

@ -384,7 +384,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>';