Always load is_notice column

This commit is contained in:
Kijin Sung 2021-02-06 22:10:54 +09:00
parent 9cac59095b
commit c97edded9d

View file

@ -660,7 +660,7 @@ class boardView extends board
if(in_array('summary', $configColumList)) array_push($this->columnList, 'content');
// default column list add
$defaultColumn = array('document_srl', 'module_srl', 'category_srl', 'lang_code', 'member_srl', 'last_update', 'comment_count', 'trackback_count', 'uploaded_count', 'status', 'regdate', 'title_bold', 'title_color');
$defaultColumn = array('document_srl', 'module_srl', 'category_srl', 'lang_code', 'is_notice', 'member_srl', 'last_update', 'comment_count', 'trackback_count', 'uploaded_count', 'status', 'regdate', 'title_bold', 'title_color');
//TODO guestbook, blog style supports legacy codes.
if($this->module_info->skin == 'xe_guestbook' || $this->module_info->default_style == 'blog')
@ -672,11 +672,6 @@ class boardView extends board
array_push($this->columnList, 'last_updater');
}
// add is_notice
if ($this->except_notice)
{
array_push($this->columnList, 'is_notice');
}
$this->columnList = array_unique(array_merge($this->columnList, $defaultColumn));
// add table name