avoid lost of data for RELOAD_PAGE_ON_CUSTOMER_CHANGE_DISABLED
This commit is contained in:
parent
007ae59788
commit
e219972936
@ -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>';
|
||||
|
||||
@ -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>';
|
||||
|
||||
@ -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>';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user