Skip to content

Commit

Permalink
Fix a subform table layout to be more strict to rows container (#19774)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fedik authored and Michael Babker committed Mar 17, 2018
1 parent 3e436e0 commit a3d77f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/joomla/form/field/subform/repeatable-table.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
<div class="subform-repeatable"
data-bt-add="a.group-add" data-bt-remove="a.group-remove" data-bt-move="a.group-move"
data-repeatable-element="tr.subform-repeatable-group"
data-rows-container="tbody" data-minimum="<?php echo $min; ?>" data-maximum="<?php echo $max; ?>">
data-rows-container="tbody.subform-repeatable-container" data-minimum="<?php echo $min; ?>" data-maximum="<?php echo $max; ?>">

<table class="adminlist table table-striped table-bordered">
<thead>
Expand All @@ -90,7 +90,7 @@
<?php endif; ?>
</tr>
</thead>
<tbody>
<tbody class="subform-repeatable-container">
<?php
foreach ($forms as $k => $form) :
echo $this->sublayout($sublayout, array('form' => $form, 'basegroup' => $fieldname, 'group' => $fieldname . $k, 'buttons' => $buttons));
Expand Down

0 comments on commit a3d77f5

Please sign in to comment.