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; $metadatas = false;
$record = null; $record = null;
$recordAccessibleSubdefs = array(); $recordAccessibleSubdefs = array();
$listsubdef= null;
if (count($records) == 1) { if (count($records) == 1) {
/** @var \record_adapter $record */ /** @var \record_adapter $record */
$record = $records->first(); $record = $records->first();

View File

@@ -197,9 +197,11 @@
<div class="metadatas-top-block"> <div class="metadatas-top-block">
<select id="select-meta-subdef" name="metaSubdef" class="input-medium check-filters"> <select id="select-meta-subdef" name="metaSubdef" class="input-medium check-filters">
<option value="" disabled >{{"prod::tool:select subdef" | trans}}</option> <option value="" disabled >{{"prod::tool:select subdef" | trans}}</option>
{% for subdef in listsubdef %} {% if listsubdef is defined and listsubdef is not null %}
<option value= "{{ subdef }}" {{ subdef== 'document'? 'selected' : 'false' }}>{{ subdef }}</option> {% for subdef in listsubdef %}
{% endfor %} <option value= "{{ subdef }}" {{ subdef== 'document'? 'selected' : 'false' }}>{{ subdef }}</option>
{% endfor %}
{% endif %}
</select> </select>
</div> </div>
<div id="metadata-load" style="height: 100%"></div> <div id="metadata-load" style="height: 100%"></div>