Skip to content

Commit

Permalink
bugfix multidimensional array translate
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaDafinser committed Oct 29, 2015
1 parent d9163ff commit 7b5ea1b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ZfcDatagrid/PrepareData.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ public function prepare()
if ($col->isTranslationEnabled() === true) {
if (is_array($row[$col->getUniqueId()])) {
foreach ($row[$col->getUniqueId()] as &$value) {
if(is_array($value)){
continue;
}
$value = $this->getTranslator()->translate($value);
}
} else {
Expand Down

0 comments on commit 7b5ea1b

Please sign in to comment.