Comment 8 for bug 807278

Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/732
Committed: http://gitorious.org/mahara/mahara/commit/4f0fed0e7e1c0607007aa84f1709ebb0c993e5b1
Submitter: Richard Mansfield (<email address hidden>)
Branch: master

commit 4f0fed0e7e1c0607007aa84f1709ebb0c993e5b1
Author: Richard Mansfield <email address hidden>
Date: Thu Sep 22 19:05:54 2011 +1200

    Add missing ctime value when inserting institution access (bug #807278)

    When a user is added to an institution, an attempt is made to insert a
    view_access record into the database without a value for the not null
    ctime column. This patch adds a ctime value for new access records
    inserted in View::add_owner_institution_access().

    The call to ensure_record_exists has been removed, because that function
    is a bit too fragile for this case: it will fail if there is more than
    one record which matches the $whereobject passed to it.

    Change-Id: Ie6871d7137d78cd2d70ae4800b4c5613de47dfaf
    Signed-off-by: Richard Mansfield <email address hidden>