Commit ff665ee8 authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1650954: View Constructor to ignore trying to make view_rows_columns"

parents af265aa1 0e470890
......@@ -312,7 +312,8 @@ class View {
$this->dirtycolumns = array();
// set only for existing views - _create provides default value
if (empty($this->columnsperrow)) {
// Ignore if the constructor is called with deleted set to true
if (empty($this->columnsperrow) && empty($this->deleted)) {
$this->columnsperrow = get_records_assoc('view_rows_columns', 'view', $this->get('id'), 'row', 'row, columns');
if (empty($this->columnsperrow)) {
// if we are missing the info for some reason we will give the page it's layout back
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment