Hi UC
FileRelationDOM seems to be fine.
Here are the last lines of the file, red is what I added to fix the issue:
<% end_if %>
<div class="per-page-control">
<% if ShowAll %><% else %>$PerPageDropdown<% end_if %>
</div>
</div>
</div>
</div>
</div>
$ExtraData
</div>
Something seems to be wrong with indentation... if you count the opening divs, you'll notice that there's one too much.
+1 = 1 <div class="bottom-controls">
+1 = 2 <div class="rounded_table_bottom_right">
+1 = 3 <div class="rounded_table_bottom_left">
+1 = 4 <div class="checkboxes">
<% if Sortable %>
+1 = 5 <div class="sort-control">
<input id="showall-{$id}" type="checkbox" <% if ShowAll %>checked="checked"<% end_if %> value="<% if Paginated %>$ShowAllLink<% else %>$PaginatedLink<% end_if %>" /><label for="showall-{$id}"><% _t('DataObjectManager.DRAGDROP','Allow drag & drop reordering') %></label>
-1 = 4 </div>
<% end_if %>
<% if RelationType = ManyMany %>
<% if Can(only_related) %>
+1 = 5 <div class="only-related-control">
<input id="only-related-{$id}" type="checkbox" <% if OnlyRelated %>checked="checked"<% end_if %> value="<% if OnlyRelated %>$AllRecordsLink<% else %>$OnlyRelatedLink<% end_if %>" /><label for="only-related-{$id}"><% _t('DataObjectManager.ONLYRELATED','Show only related records') %></label>
-1 = 4 </div>
<% end_if %>
<% end_if %>
+1 = 5 <div class="per-page-control">
<% if ShowAll %><% else %>$PerPageDropdown<% end_if %>
-1 = 4 </div>
-1 = 3 </div>
-1 = 2 </div>
-1 = 1 </div>
Here's one missing
$ExtraData
This one is coming from the beginning of the file ---></div>
Update: Ugh.. the above is really messy.. sorry. I hope you see where the problem is nevertheless ;)