SearchKit - Increase date range for in-place edit
authorcolemanw <coleman@civicrm.org>
Wed, 25 Oct 2023 18:39:59 +0000 (14:39 -0400)
committercolemanw <coleman@civicrm.org>
Wed, 25 Oct 2023 18:39:59 +0000 (14:39 -0400)
ext/search_kit/ang/crmSearchTasks/crmSearchInput/date.html

index f5c7508be3e60f83e8176ea8763a6dbdb6015e7f..5fdfa72670bfe1e2d627d90e5fe0b61891da3ee3 100644 (file)
@@ -10,7 +10,7 @@
   <div class="form-group" ng-switch="$ctrl.dateType">
 
     <div class="form-group" ng-switch-when="fixed">
-      <input class="form-control" crm-ui-datepicker="{time: $ctrl.field.data_type === 'Timestamp'}" ng-model="$ctrl.value" ng-required="!$ctrl.field.nullable" ng-if="!$ctrl.isMulti()">
+      <input class="form-control" crm-ui-datepicker="{time: $ctrl.field.data_type === 'Timestamp', start_date_years: 100, end_date_years: 100}" ng-model="$ctrl.value" ng-required="!$ctrl.field.nullable" ng-if="!$ctrl.isMulti()">
       <input class="form-control" crm-multi-select-date ng-model="$ctrl.value" ng-required="!$ctrl.field.nullable" ng-if="$ctrl.isMulti()">
     </div>