Parcourir la source

Merge pull request #1024 from tripal/272-tv3-date-default-range

Fix the range for datetime fields to +/-10
Lacey-Anne Sanderson il y a 5 ans
Parent
commit
a1fbf0538b
1 fichiers modifiés avec 1 ajouts et 2 suppressions
  1. 1 2
      tripal_chado/includes/tripal_chado.fields.inc

+ 1 - 2
tripal_chado/includes/tripal_chado.fields.inc

@@ -1042,9 +1042,8 @@ function tripal_chado_bundle_instances_info_base(&$info, $entity_type, $bundle,
         $base_info['widget']['settings']['increment'] = 1;
         $base_info['widget']['settings']['tz_handling'] = 'none';
         $base_info['widget']['settings']['collapsible'] = TRUE;
+        $base_info['widget']['settings']['year_range'] = '-10:+10';
 
-        // TODO: Add settings so that the minutes increment by 1.
-        // And turn off the timezone, as the Chado field doesn't support it.
         break;
     }