Skip to content

Commit

Permalink
Fix numberange usage in DataFilter zofe#427
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrigoruta committed Apr 28, 2018
1 parent 50a71e1 commit 2f36db9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DataForm/Field/Numberange.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function build()
{
$output = "";

if (parent::build() === false) {
if (Field::build() === false) {
return;
}

Expand All @@ -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 = '
<div id="range_' . $this->name . '_container">
Expand Down

0 comments on commit 2f36db9

Please sign in to comment.