Details
- 
        Type:
 Bug
            
         - 
        Status: Closed
 - 
            Priority:
 Minor
                
             - 
            Resolution: Fixed
 - 
            Affects Version/s: 3.2.0
 - 
            Fix Version/s: 3.2.1
 - 
            Component/s: Client Interface
 - 
            Labels:None
 
Description
When a client goes to update their information and to add a phone number, saving the changes results in one of the phone numbers being duplicated.
This also prevents additional phone numbers from being deleted.
See http://www.blesta.com/forums/index.php?/topic/2643-remove-contact-numbers/
To fix yourself, find /app/views/client/bootstrap/client_contacts_phone_numbers.pdt (line 83):
#1
Change from:
--------------
$(last_tr).find('.phone_id').attr('value', '');
--------------
To:
--------------
fields.find('.phone_id').attr('value', '');
--------------
#2
Change (line 92-93) from:
-------------
$(tr).last().after($(tr).children('input.phone_id'));
$('tr.phone_row:last').after($(this).closest('tr').children('input.phone_id'));
-------------
To:
------------
$(tr).parents('table').after($(tr).find('input.phone_id'));
------------