Opened 6 years ago

Closed 6 years ago

#1484600 closed Bugs (worksforme)

Can't add a previously-deleted contact

Reported by: benw Owned by:
Priority: 4 Milestone: 0.1-stable
Component: Core functionality Version: git-master
Severity: normal Keywords:
Cc:

Description

The search() method in rcube_contacts.inc; I think I found a glitch in it. If you have a contact in your address book and you delete it by mistake, then try to add the same contact again, it will see it as a duplicate and won't let you add it. This is because the search() method searches all contacts, even those with the del flag set.

Change History (5)

comment:1 Changed 6 years ago by benw

Sorry for the dupe! This is the correct one.

comment:2 Changed 6 years ago by thomasb

  • Milestone changed from 0.1-rc2 to 0.1-stable

comment:3 in reply to: ↑ description Changed 6 years ago by seansan

Replying to benw:

The search() method in rcube_contacts.inc; I think I found a glitch in it. If you have a contact in your address book and you delete it by mistake, then try to add the same contact again, it will see it as a duplicate and won't let you add it. This is because the search() method searches all contacts, even those with the del flag set.

I cannot reproduce - Can you give the steps to reproduce?

comment:4 Changed 6 years ago by benw

That's odd- working for me too now. I'm going to try to see if I can reproduce the glitch.

comment:5 Changed 6 years ago by thomasb

  • Resolution set to worksforme
  • Status changed from new to closed

The search queries for records having del<>1. Deleted records should therefore not match.

Note: See TracTickets for help on using tickets.