Fixed checkbox issue in Data Abstract and used Terms value instead of literal text.
authorChuck Scott <cscott@gaslightmedia.com>
Fri, 9 Mar 2018 16:34:06 +0000 (11:34 -0500)
committerChuck Scott <cscott@gaslightmedia.com>
Fri, 9 Mar 2018 16:34:06 +0000 (11:34 -0500)
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.

lib/GlmDataAbstract/DataAbstract.php
views/admin/fileLibrary/index.html

index fd8e50b..9b7f521 100644 (file)
@@ -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
index 4dd7211..647af24 100644 (file)
@@ -10,7 +10,7 @@
     </style>
     
     
-    <h2>Files Library</h2>
+    <h1 class="glm-admin-table-header">{$terms.reg_term_registration_plur_cap} Dashboard</h1>
     <div id="glm-admin-content-container">
     
         <div class="glm-admin-table glm-admin-table-inner-wrapper">