mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 03:53:13 +00:00
PHRAS-3066 #commetn fix 500 error on tools #time 2h
This commit is contained in:
@@ -41,7 +41,7 @@ class ToolsController extends Controller
|
||||
$metadatas = false;
|
||||
$record = null;
|
||||
$recordAccessibleSubdefs = array();
|
||||
|
||||
$listsubdef= null;
|
||||
if (count($records) == 1) {
|
||||
/** @var \record_adapter $record */
|
||||
$record = $records->first();
|
||||
|
@@ -197,9 +197,11 @@
|
||||
<div class="metadatas-top-block">
|
||||
<select id="select-meta-subdef" name="metaSubdef" class="input-medium check-filters">
|
||||
<option value="" disabled >{{"prod::tool:select subdef" | trans}}</option>
|
||||
{% for subdef in listsubdef %}
|
||||
<option value= "{{ subdef }}" {{ subdef== 'document'? 'selected' : 'false' }}>{{ subdef }}</option>
|
||||
{% endfor %}
|
||||
{% if listsubdef is defined and listsubdef is not null %}
|
||||
{% for subdef in listsubdef %}
|
||||
<option value= "{{ subdef }}" {{ subdef== 'document'? 'selected' : 'false' }}>{{ subdef }}</option>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</select>
|
||||
</div>
|
||||
<div id="metadata-load" style="height: 100%"></div>
|
||||
|
Reference in New Issue
Block a user