Update customer title in dashboard assigned customers when customer title is changed.
This commit is contained in:
parent
6e78f33730
commit
5174b85aa7
@ -98,6 +98,7 @@ public class DashboardInfo extends SearchTextBased<DashboardId> implements HasNa
|
|||||||
public boolean updateAssignedCustomer(Customer customer) {
|
public boolean updateAssignedCustomer(Customer customer) {
|
||||||
ShortCustomerInfo customerInfo = customer.toShortCustomerInfo();
|
ShortCustomerInfo customerInfo = customer.toShortCustomerInfo();
|
||||||
if (this.assignedCustomers != null && this.assignedCustomers.contains(customerInfo)) {
|
if (this.assignedCustomers != null && this.assignedCustomers.contains(customerInfo)) {
|
||||||
|
this.assignedCustomers.remove(customerInfo);
|
||||||
this.assignedCustomers.add(customerInfo);
|
this.assignedCustomers.add(customerInfo);
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user