Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-10094

There are two spaces in contact's formatted name if middle name is empty string

    XMLWordPrintableJSON

Details

    Description

      Repro steps:

      create and run a mobilespec app with contacts plugin:

      node cordova-mobile-spec/createmobilespec/createmobilespec.js mobilespec --android --plugins="cordova-plugin-contacts"
      
      cd mobilespec
      
      cordova run
      

      Then go to contacts plugin manual tests and create a 'Dooney Evans' contact.
      Then try to delete it.

      Expected result:
      Contact with the name of Dooney Evans is deleted.

      Actual result:
      Contact is not deleted because returned formatted name contains two spaces in it instead of one:
      https://yadi.sk/i/Fk1pZYRfkn65L

      Attachments

        Activity

          People

            alsorokin Alexander Sorokin
            alsorokin Alexander Sorokin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: