Use TechnicalDataSet in record_adapter

This commit is contained in:
Benoît Burnichon
2015-07-09 17:53:41 +02:00
parent 8e6648c512
commit 3b3f3f4011
9 changed files with 82 additions and 44 deletions

View File

@@ -110,8 +110,8 @@
{% set dataW = constant('media_subdef::TC_DATA_WIDTH') %}
{% set dataH = constant('media_subdef::TC_DATA_HEIGHT') %}
{% set width = record.get_technical_infos(dataW) %}
{% set height = record.get_technical_infos(dataH) %}
{% set width = record.get_technical_infos(dataW).value %}
{% set height = record.get_technical_infos(dataH).value %}
{% if width and height %}
{% set ratio = (width / height)|number_format(2, '.') %}