Ticket #2879 (new Bugs)

Opened 4 years ago

Last modified 3 years ago

phonebook overwrites existing speedials

Reported by: mbrevda Assigned to:
Priority: minor Milestone: Undetermined
Component: Phonebook Directory Version: 2.4-branch
Keywords: Cc:
Confirmation: Unreviewed SVN Revision (if applicable):
Backend Engine: All Backend Engine Version:

Description

if you set a speeddial to a number that is allready used - it get assigned to your 'new' entry (and leaves the old entry without a speedial)

Change History

12/30/08 03:34:25 changed by naftali5

The bug is worse than that. It actually deletes the phonebook entry and leaves the speeddial with no phonebook entry, but alway displays the highest speeddial as associated with the new entry.

the following code changed in page.phonebook.php line 28 is a simple fix which will avoid the problem by deleting the old speeddial, but not fix old entries. They will be fixed as the speeddials are reused.

		case "add":
			$numbers = phonebook_list();
			phonebook_del($number, $numbers[$number]['speeddial']);
			phonebook_add($number, $name, $speeddial);
			redirect_standard();
		exit;
		break;