Skip to content

Commit 49572ae

Browse files
authored
Merge pull request #143 from kevm256/master
Update initSettings to support indexes
2 parents c8ed362 + fa42a69 commit 49572ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DateRangePicker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ protected function initSettings()
366366
$end = $this->getRangeValue('end');
367367
$this->value = $start . $this->_separator . $end;
368368
if ($this->hasModel()) {
369-
$attr = $this->attribute;
369+
$attr = Html::getAttributeName($this->attribute);
370370
$this->model->$attr = $this->value;
371371
}
372372
$this->pluginOptions['startDate'] = $start;

0 commit comments

Comments
 (0)