Comment 8 for bug 1626805

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

Reviewed: https://reviews.mahara.org/7184
Committed: https://git.mahara.org/mahara/mahara/commit/ce0d0fa356ab18cc900707af55ccef5438495843
Submitter: Robert Lyon (<email address hidden>)
Branch: 16.10_STABLE

commit ce0d0fa356ab18cc900707af55ccef5438495843
Author: Robert Lyon <email address hidden>
Date: Fri Sep 23 13:44:42 2016 +1200

Bug 1626805: Allow the view constructor to fix missing layout info

Sometimes in MySql if many users are copying a page at once the
view_rows_columns information can get deleted.

As we can work out what the values should have been from other tables
we can regenerate it and add it back in.

If the view doesn't have a layout set it hasn't changed from when
first been made so we can make it the same as view type's template

To test: see bug report

behatnotneeded

Change-Id: I81c8e33dc1bc4121c1df97e1acbc981ad969271c
Signed-off-by: Robert Lyon <email address hidden>
(cherry picked from commit e95ebc66365b6e083d786600e0570bd652d3794f)