Send the chosen company when switching branch
This commit is contained in:
@@ -420,7 +420,9 @@ function do_switch_branch(company_id) {
|
||||
autoPrepare: true,
|
||||
checkRequired: 0,
|
||||
action: 'update',
|
||||
company_id: company_id,
|
||||
// Sent under its own key: prepare_form_data() always fills company_id with
|
||||
// the CURRENT company, and only options.data reaches the payload.
|
||||
data: { target_company_id: company_id },
|
||||
onSuccess: function(res) {
|
||||
window.location.reload();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user