From 8ccbc0a89e7ed6ca00d353ede3e30f77b9383166 Mon Sep 17 00:00:00 2001 From: "alextselegidis@gmail.com" Date: Sun, 24 Nov 2013 16:19:12 +0000 Subject: [PATCH] * Updated customers_model.php (will not check for existing email). --- src/application/models/customers_model.php | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/application/models/customers_model.php b/src/application/models/customers_model.php index 9dbd3a5e..b5562717 100644 --- a/src/application/models/customers_model.php +++ b/src/application/models/customers_model.php @@ -182,19 +182,19 @@ class Customers_Model extends CI_Model { } // When inserting a record the email address must be unique. - $num_rows = $this->db - ->select('*') - ->from('ea_users') - ->join('ea_roles', 'ea_roles.id = ea_users.id_roles', 'inner') - ->where('ea_roles.slug', DB_SLUG_CUSTOMER) - ->where('ea_users.email', $customer['email']) - ->get() - ->num_rows(); - - if ($num_rows > 0 && !isset($customer['id'])) { - throw new Exception('Given email address belongs to another customer record. ' - . 'Please use a different email.'); - } + //$num_rows = $this->db + // ->select('*') + // ->from('ea_users') + // ->join('ea_roles', 'ea_roles.id = ea_users.id_roles', 'inner') + // ->where('ea_roles.slug', DB_SLUG_CUSTOMER) + // ->where('ea_users.email', $customer['email']) + // ->get() + // ->num_rows(); + // + //if ($num_rows > 0 && !isset($customer['id'])) { + // throw new Exception('Given email address belongs to another customer record. ' + // . 'Please use a different email.'); + //} return TRUE; }