Skip to content
This repository has been archived by the owner on Jun 12, 2024. It is now read-only.

Commit

Permalink
Merge pull request #428 from pgrigoruta/master
Browse files Browse the repository at this point in the history
Fix numberange usage in DataFilter #427
  • Loading branch information
zofe authored Jul 23, 2018
2 parents ee612ef + 2f36db9 commit d3e2a17
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 d3e2a17

Please sign in to comment.