From 6805f2c96f53bf7b0e8769a202ff99cd3be17e64 Mon Sep 17 00:00:00 2001 From: kjmartens Date: Thu, 19 Dec 2024 00:43:30 -0600 Subject: [PATCH] =?UTF-8?q?fix(#1680):=20fixed=20a=20bug=20where=20the=20L?= =?UTF-8?q?ast=20Number=20for=20=E2=80=9CNumbers=E2=80=9D=20in=20the=20pre?= =?UTF-8?q?defined=20options=20would=20always=20be=20=E2=80=9920=E2=80=99.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Properties/Options/Predefined/Types/Numbers/Numbers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugin/src/Fields/Properties/Options/Predefined/Types/Numbers/Numbers.php b/packages/plugin/src/Fields/Properties/Options/Predefined/Types/Numbers/Numbers.php index c04a37110..3d01d1fe0 100644 --- a/packages/plugin/src/Fields/Properties/Options/Predefined/Types/Numbers/Numbers.php +++ b/packages/plugin/src/Fields/Properties/Options/Predefined/Types/Numbers/Numbers.php @@ -36,7 +36,7 @@ public function generateOptions(): OptionCollection $collection = new OptionCollection(); $first = $this->first ?? 0; - $last = $this->last ?? 20; + $last = $this->second ?? 20; $step = $this->step ?: 1; foreach (range($first, $last, $step) as $i) {