Skip to content

Commit

Permalink
Merge pull request #113 from Kunstmaan/hotfix/2.3.17
Browse files Browse the repository at this point in the history
hotfix/2.3.17
  • Loading branch information
jverdeyen committed Aug 7, 2014
2 parents 1f495bc + 964d96a commit bebf0c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Resources/views/Default/export.csv.twig
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
{%- set columnName = column.name -%}
{%- set template = column.template -%}
{% if template is not null and template != 1 and template != "" %}
{% include template with {'row': item, 'columnName': columnName, 'object': adminlist.getValue(item, columnName)} %}
{{- quote|raw -}}{% include template with {'row': item, 'columnName': columnName, 'object': adminlist.getValue(item, columnName)} %}{{- quote|raw -}}
{% else %}
{{- quote|raw -}}{{- adminlist.getStringValue(item, columnName) -}}{{- quote|raw -}}
{% endif %}
Expand Down
4 changes: 2 additions & 2 deletions Service/ExportService.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function createExcelSheet($adminlist)
$row = array();
foreach ($adminlist->getExportColumns() as $column) {
$data = $adminlist->getStringValue($item[0], $column->getName());
if ($data instanceof \Doctrine\Common\Persistence\Proxy) {
if (is_object($data)) {
if (!$this->renderer->exists($column->getTemplate())) {
throw new \Exception('No export template defined for ' . get_class($data));
}
Expand Down Expand Up @@ -125,4 +125,4 @@ public function setRenderer($renderer)
{
$this->renderer = $renderer;
}
}
}

0 comments on commit bebf0c4

Please sign in to comment.