Skip to content

Commit 005f265

Browse files
author
Miika Arponen
committed
Merged master
2 parents db913bf + 79f2603 commit 005f265

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
99
### Changed
1010
- `Readonly` trait to `ReadonlyTrait` to avoid PHP 8.1 reserved word `readonly`.
1111

12+
## [1.36.1] - 2021-09-24
13+
14+
### Added
15+
- RediPress field type `Numeric` for the Number field.
16+
- Added min-max trait to Flexible Content Layout
17+
1218
## [1.36.0] - 2021-02-24
1319

1420
### Added

src/Field/Flexible/Layout.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
use Geniem\ACF\Field,
99
Geniem\ACF\Field\Common\Groupable,
10+
Geniem\ACF\Field\Common\MinMax,
1011
Geniem\ACF\Interfaces\Groupable as GroupableInterface;
1112

1213
/**
@@ -19,6 +20,11 @@ class Layout implements GroupableInterface {
1920
*/
2021
use Groupable;
2122

23+
/**
24+
* Import the min max functionalities
25+
*/
26+
use MinMax;
27+
2228
/**
2329
* Layout label
2430
*

src/Field/Number.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ class Number extends \Geniem\ACF\Field {
3232
*/
3333
protected $step;
3434

35+
/**
36+
* What type the RediPress index field should be.
37+
*
38+
* @var string
39+
*/
40+
protected $redipress_field_type = 'Numeric';
41+
3542
/**
3643
* Set step size
3744
*

0 commit comments

Comments
 (0)