Fixed minor glitch - OK, I dont know what it fixed but it was needed.
authorChuck Scott <cscott@gaslightmedia.com>
Tue, 24 Apr 2018 17:53:48 +0000 (13:53 -0400)
committerChuck Scott <cscott@gaslightmedia.com>
Tue, 24 Apr 2018 17:53:48 +0000 (13:53 -0400)
classes/data/dataCustomFields.php

index 0a5d106..25559fe 100644 (file)
@@ -270,6 +270,9 @@ class GlmDataFieldsCustomFields extends GlmDataAbstract
                         'float_data' => $customFieldData['float_data']
                     ));
 
+                    // Default is that this field has stored content
+                    $r['displayOnly'] = false;
+
                     switch ($r['field_type']) {
 
                         case 'text':
@@ -317,6 +320,11 @@ class GlmDataFieldsCustomFields extends GlmDataAbstract
                             $r['stored'] = $r['float_data'];
                             break;
 
+                        // Remainder of fields are display only and aren't used to store user data
+                        default:
+                            $r['displayOnly'] = true;
+                            break;
+
                     }
 
                 }