Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/ThaDafinser/ZfcDatagrid i…
Browse files Browse the repository at this point in the history
…nto feature/dynamicLabel
  • Loading branch information
ThaDafinser committed Aug 31, 2015
2 parents 6562180 + 6462985 commit 5ca1fc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/ZfcDatagrid/Column/Action/Button.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ public function __construct()
parent::__construct();

$this->addClass('btn');
$this->addClass('btn-default');
}

/**
Expand Down
4 changes: 3 additions & 1 deletion src/ZfcDatagrid/PrepareData.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ public function prepare()
$data = $this->data;

foreach ($data as $key => &$row) {
$row = (array) $row;

$ids = [];

foreach ($this->getColumns() as $col) {
Expand Down Expand Up @@ -224,7 +226,7 @@ public function prepare()
*/
if ($col->hasFormatters() === true) {
foreach ($col->getFormatters() as $formatter) {
$formatter->setRowData((array) $row);
$formatter->setRowData($row);
$formatter->setRendererName($this->getRendererName());

$row[$col->getUniqueId()] = $formatter->format($col);
Expand Down

0 comments on commit 5ca1fc0

Please sign in to comment.