Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-1240

Updating phone numbers adds a duplicate number and prevents their deletion

    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/

        Activity

        Hide
        tyson Tyson Phillips (Inactive) added a comment -

        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'));
        ------------

        Show
        tyson Tyson Phillips (Inactive) added a comment - 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')); ------------

          People

          • Assignee:
            tyson Tyson Phillips (Inactive)
            Reporter:
            tyson Tyson Phillips (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              25/Jun/14