Skip to content

Commit

Permalink
Merge pull request #27 from OpenBuildings/fix-date-label
Browse files Browse the repository at this point in the history
Fix the label of the date field in the filter.
  • Loading branch information
sstoyanov7 authored Jun 13, 2017
2 parents 0c1907d + f917a1a commit a5e4056
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
---
language: php

dist: trusty

php:
- 5.3
- 5.4
- 5.5
- 5.6
- 7.0
- hhvm

matrix:
include:
- php: "5.3"
dist: precise

branches:
only:
Expand Down
4 changes: 3 additions & 1 deletion classes/Kohana/Tart/Filter/Entry/Date.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ abstract class Kohana_Tart_Filter_Entry_Date extends Tart_Filter_Entry {

public function render()
{
return $this->parent()->form()->row('input', $this->name(), array(), array('type' => 'date', 'tabindex' => $this->tabindex()));
return $this->parent()->form()->row('input', $this->name(), array(
'label' => $this->label(),
), array('type' => 'date', 'tabindex' => $this->tabindex()));
}

public function default_callback()
Expand Down

0 comments on commit a5e4056

Please sign in to comment.