← Back to team overview

mahara-contributors team mailing list archive

[Bug 862933] A change has been merged

 

Reviewed:  https://reviews.mahara.org/756
Committed: http://gitorious.org/mahara/mahara/commit/883972ddecc82112b5b879f2e648513f24c9df23
Submitter: Richard Mansfield (richardm@xxxxxxxxxx)
Branch:    master

commit 883972ddecc82112b5b879f2e648513f24c9df23
Author: Richard Mansfield <richard.mansfield@xxxxxxxxxxxxxxx>
Date:   Fri Sep 30 15:15:50 2011 +1300

    Fix user csv updates when the db has duplicate emails (bug #862933)
    
    The patch to update existing users by csv (commit 2f632f7988) uses
    get_record to check whether email addresses are taken, stupidly
    assuming that email addresses are unique. This throws an SQLException
    when there are two users already on the site who have the same email
    address.
    
    This patch allows the csv update to succeed when one of the existing
    emails is already owned by the user specified in the csv line.
    
    Change-Id: I2212907dfbd30de37cd26c6f6504989b36a574e0
    Signed-off-by: Richard Mansfield <richard.mansfield@xxxxxxxxxxxxxxx>

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/862933

Title:
  Updating users by csv fails when there are duplicate emails on the
  site

Status in Mahara ePortfolio:
  In Progress

Bug description:
  The patch to update existing users by csv (commit 2f632f7988) uses
  get_record to check whether email addresses are taken, stupidly
  assuming that email addresses are unique.  This throws an SQLException
  when there are two users already on the site who have the same email
  address.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/862933/+subscriptions


References