From a3148cc17dd86cf0d8a0d802b4db3d67595188b9 Mon Sep 17 00:00:00 2001 From: Abijah Date: Thu, 30 May 2013 03:38:17 +0000 Subject: [PATCH] Fixed bug that was using an existing entry, even when the source had been selected as new. git-svn-id: file:///svn-source/pmgr/branches/hosted_migration_20130215@1029 97e9348a-65ac-dc4b-aefc-98561f571b83 --- site/models/contact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/models/contact.php b/site/models/contact.php index 43ad9e0..554d91f 100644 --- a/site/models/contact.php +++ b/site/models/contact.php @@ -91,7 +91,7 @@ class Contact extends AppModel { // If the user has entered all new data, we need to // save that as a brand new entry. - if (!isset($item['id'])) { + if (!isset($item['id']) || $item['source'] == 'new') { $I = new $class(); $I->create(); if (!$I->save($item, false)) {