Skip to content

Commit cc75a2e

Browse files
authored
Merge pull request #187 from devgeniem/TMS-1088
TMS-1088: Change program dates to be queryable by redipress
2 parents ac7cbf4 + 9ac307e commit cc75a2e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.MD

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
77

88
## [Unreleased]
99

10+
- TMS-1088: Change program dates to be queryable by redipress
11+
1012
## [1.9.1] - 2024-11-06
1113

1214
- TMS-1075-fix: Program page query fix

lib/ACF/ProgramGroup.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,14 +223,16 @@ protected function get_info_tab( string $key ) : Field\Tab {
223223
->set_name( 'apply_start' )
224224
->set_return_format( 'Y-m-d' )
225225
->set_wrapper_width( 50 )
226-
->set_instructions( $strings['apply_start']['instructions'] );
226+
->set_instructions( $strings['apply_start']['instructions'] )
227+
->redipress_add_queryable();
227228

228229
$apply_end_field = ( new Field\DatePicker( $strings['apply_end']['title'] ) )
229230
->set_key( "{$key}_apply_end" )
230231
->set_name( 'apply_end' )
231232
->set_return_format( 'Y-m-d' )
232233
->set_wrapper_width( 50 )
233-
->set_instructions( $strings['apply_end']['instructions'] );
234+
->set_instructions( $strings['apply_end']['instructions'] )
235+
->redipress_add_queryable();
234236

235237
$apply_info_field = ( new Field\Text( $strings['apply_info']['title'] ) )
236238
->set_key( "{$key}_apply_info" )

0 commit comments

Comments
 (0)