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>
Reviewed: https:/ /reviews. mahara. org/732 gitorious. org/mahara/ mahara/ commit/ 4f0fed0e7e1c060 7007aa84f1709eb b0c993e5b1
Committed: http://
Submitter: Richard Mansfield (<email address hidden>)
Branch: master
commit 4f0fed0e7e1c060 7007aa84f1709eb b0c993e5b1
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 owner_instituti on_access( ).
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_
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: Ie6871d7137d78c d2d70ae4800b4c5 613de47dfaf
Signed-off-by: Richard Mansfield <email address hidden>