Reviewed: https://reviews.mahara.org/7014 Committed: https://git.mahara.org/mahara/mahara/commit/e95ebc66365b6e083d786600e0570bd652d3794f Submitter: Robert Lyon (<email address hidden>) Branch: master
commit e95ebc66365b6e083d786600e0570bd652d3794f 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>
Reviewed: https:/ /reviews. mahara. org/7014 /git.mahara. org/mahara/ mahara/ commit/ e95ebc66365b6e0 83d786600e0570b d652d3794f
Committed: https:/
Submitter: Robert Lyon (<email address hidden>)
Branch: master
commit e95ebc66365b6e0 83d786600e0570b d652d3794f
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: I81c8e33dc1bc41 21c1df97e1acbc9 81ad969271c
Signed-off-by: Robert Lyon <email address hidden>