Update customer title in dashboard assigned customers when customer title is changed.

This commit is contained in:
Igor Kulikov 2018-06-04 10:22:06 +03:00
parent 6e78f33730
commit 5174b85aa7

View File

@ -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 {