PHRAS-3066 #commetn fix 500 error on tools #time 2h

This commit is contained in:
Harrys Ravalomanana
2020-05-12 11:15:07 +04:00
parent e9b3a83c59
commit 7022c382b8
2 changed files with 6 additions and 4 deletions

View File

@@ -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();

View File

@@ -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>