From: Chuck Scott Date: Fri, 9 Mar 2018 16:34:06 +0000 (-0500) Subject: Fixed checkbox issue in Data Abstract and used Terms value instead of literal text. X-Git-Tag: v2.10.28^2~11 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=d24271bf74d7679a3552abcc4780d4211e5be59b;p=WP-Plugins%2Fglm-member-db.git Fixed checkbox issue in Data Abstract and used Terms value instead of literal text. Data abstract was changed to use the "strict" flag in in_array() when testing checkbox input. Added a string '1' in addition to the numeric 1 to catch both situations. Replaced litteral text if File Library index.html with a settings term. --- diff --git a/lib/GlmDataAbstract/DataAbstract.php b/lib/GlmDataAbstract/DataAbstract.php index fd8e50b8..9b7f5212 100644 --- a/lib/GlmDataAbstract/DataAbstract.php +++ b/lib/GlmDataAbstract/DataAbstract.php @@ -183,7 +183,7 @@ abstract class GlmDataAbstract $in = ($f['default']); } } - + // Check for required field if (isset($f['required']) && $f['required'] && trim($in) == '') { $this->inputFieldStatus = false; @@ -1473,7 +1473,7 @@ $forEdit = true; // Otherwise get input } else { - $valid = array(1, true, 'on', 'yes', 'true'); + $valid = array(1, '1', true, 'on', 'yes', 'true'); $this->inputFieldStatus = true; $in = false; @@ -1634,7 +1634,7 @@ $forEdit = true; $out = array( 'date' => $text_date, 'timestamp' => strtotime($text_date), - 'mysql_date' => $mysql_date + 'mysql_date' => $mysql_date ); // Build picklists for date input diff --git a/views/admin/fileLibrary/index.html b/views/admin/fileLibrary/index.html index 4dd72115..647af244 100644 --- a/views/admin/fileLibrary/index.html +++ b/views/admin/fileLibrary/index.html @@ -10,7 +10,7 @@ -

Files Library

+

{$terms.reg_term_registration_plur_cap} Dashboard