From c0a62c16c70d5ca1a3a4a9d65f071f3708c78486 Mon Sep 17 00:00:00 2001 From: Cameron Date: Fri, 23 Oct 2015 11:48:24 -0700 Subject: [PATCH] Fix for lengthy "news_extended" content. Admin-UI: $fields 'type' of false will hide the field, but still save it if posted. --- e107_core/sql/core_sql.php | 2 +- e107_handlers/form_handler.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/e107_core/sql/core_sql.php b/e107_core/sql/core_sql.php index dd1b8cddc..84dff041c 100644 --- a/e107_core/sql/core_sql.php +++ b/e107_core/sql/core_sql.php @@ -303,7 +303,7 @@ CREATE TABLE news ( news_title varchar(255) NOT NULL default '', news_sef varchar(200) NOT NULL default '', news_body longtext NOT NULL, - news_extended text NOT NULL, + news_extended longtext NOT NULL, news_meta_keywords varchar(255) NOT NULL default '', news_meta_description text NOT NULL, news_datestamp int(10) unsigned NOT NULL default '0', diff --git a/e107_handlers/form_handler.php b/e107_handlers/form_handler.php index aae46ff7e..f5104504d 100644 --- a/e107_handlers/form_handler.php +++ b/e107_handlers/form_handler.php @@ -4762,7 +4762,7 @@ class e_form $key = $att['field']; } - if($key == 'checkboxes' || $key == 'options' || ($att['type'] === null)) + if($key == 'checkboxes' || $key == 'options' || ($att['type'] === null) || ($att['type'] === false)) { continue; }