Skip to content

Commit

Permalink
Merge pull request #30 from dipcode-software/feat/add-widget-vars
Browse files Browse the repository at this point in the history
Added missing variable (attrs)
  • Loading branch information
lmss authored May 10, 2019
2 parents 682987a + 29c5083 commit 647c897
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [2.1.4] - 2019-05-10
### Added
- Added missing varible (attributes) to `BoundWidget` class

## [2.1.3] - 2019-01-18
### Fixed
- Validate choice field if is not empty and if is not a valid choice
Expand Down
2 changes: 2 additions & 0 deletions src/Bounds/BoundWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class BoundWidget
public $name;
public $value;
public $label;
public $attrs;

public function __construct(array $data)
{
Expand All @@ -21,6 +22,7 @@ public function __construct(array $data)
$this->name = $data["name"];
$this->value = $data["value"];
$this->label = $data["label"];
$this->attrs = $data["attrs"];
$this->template = $data["template"];

unset($data["template"]);
Expand Down

0 comments on commit 647c897

Please sign in to comment.