From 2f36db9220998cede55bb3203d7d8f471aa54894 Mon Sep 17 00:00:00 2001 From: Paul Grigoruta Date: Sat, 28 Apr 2018 19:18:11 +0300 Subject: [PATCH] Fix numberange usage in DataFilter #427 --- src/DataForm/Field/Numberange.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/DataForm/Field/Numberange.php b/src/DataForm/Field/Numberange.php index fec13b57..0640357c 100644 --- a/src/DataForm/Field/Numberange.php +++ b/src/DataForm/Field/Numberange.php @@ -21,7 +21,7 @@ public function build() { $output = ""; - if (parent::build() === false) { + if (Field::build() === false) { return; } @@ -42,8 +42,8 @@ public function build() case "create": case "modify": - $lower = Form::number($this->name . '[]', @$this->values[0], $this->attributes); - $upper = Form::number($this->name . '[]', @$this->values[1], $this->attributes); + $lower = Form::number($this->name . '[from]', @$this->values[0], $this->attributes); + $upper = Form::number($this->name . '[to]', @$this->values[1], $this->attributes); $output = '