Incorrect number of SMS texts made but correct number reported #332
Description
I located a bug in the Circle Of Trust section of the app. I found out that if you add a contact at the beginning of the My Trustees list and then add one at the end with some blank contacts in the middle, eg. contact 1 is Bob, contact 2 is Stan and contact 6 is Theresa, with contacts 3, 4 and 5 blank, when clicking the help me button, then "I need to talk" button, the SMS Reort says that they only contacted Bob and Stan, however, on the Message Sent count, it says that the number of contacts they contacted was 3. This bug is also found when clicking the "call, I need an interruption" button as well. However, the expected response is correct, i.e. SMS for all 3 contacts for the "come get me" button.
To reproduce the bug:
- Open the Circle Of Trust page
- Click on the Edit Trustees button
- Make sure all the contacts are blank and hit save
- Click the Edit Trustees button again
- Fill in a contact for the first and second contact lines
- Fill in a contact for the sixth contact line
- Make sure that 3, 4 and 5 remain blank
- Press save
- Hit the Help Me button on the Circle Of Trust page
- Hit the "I need to talk" option
- I dialogue pops up with only two contact phone numbers.
- Hit "ok"
- A dialogue pops up saying that three messages were sent
- Repeat this with "come get me" option and all three phone numbers are displayed in the dialogue
I have
As you can see, I have added the contacts Stan Din and Bob Duck.
I then clicked on the help me button and then clicked the "I need to talk" option and it worked perfectly. It sent to both contacts.
I then added Theresa Green as contact 6
I then clicked the help me button again and then the "I need to talk" option.
Here it says that only Stan Din and Bob Duck were contacted when there are 3 people.
The count, however, shows that 3 people were contacted.