Remove blank from data class.
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 29 Oct 2018 12:23:49 +0000 (08:23 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 29 Oct 2018 12:23:49 +0000 (08:23 -0400)
This is being added to the view with value of 0 which causes two blank
options.

classes/data/dataLocations.php

index 0eb5c4e..4f3066e 100644 (file)
@@ -152,7 +152,7 @@ class GlmDataEventsLocations extends GlmDataAbstract
                     'p_table' => GLM_MEMBERS_PLUGIN_DB_PREFIX . 'cities',
                     'p_field' => 'name',
                     'p_orderby' => 'name',
-                    'p_blank' => true,
+                    'p_blank' => false,
                     'force_list' => true,
                 'use' => 'a'
             ),
@@ -207,7 +207,7 @@ class GlmDataEventsLocations extends GlmDataAbstract
                     'p_table' => GLM_MEMBERS_PLUGIN_DB_PREFIX . 'regions',
                     'p_field' => 'name',
                     'p_orderby' => 'name',
-                    'p_blank' => true,
+                    'p_blank' => false,
                     'force_list' => true,
                 'use' => 'a'
             ),