Skip to content

Commit

Permalink
Add default sort
Browse files Browse the repository at this point in the history
  • Loading branch information
remdex committed Aug 23, 2021
1 parent c3e20b5 commit 22fefff
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -22,7 +22,7 @@
<form action="<?php echo erLhcoreClassDesign::baseurl('chat/subjectwidget')?>" method="post" onsubmit="return lhinst.submitModalForm($(this))">

<div class="row" style="max-height: 500px; overflow-y: auto">
<?php foreach (erLhAbstractModelSubject::getList(array('limit' => false)) as $item) : ?>
<?php foreach (erLhAbstractModelSubject::getList(array('sort' => 'name ASC','limit' => false)) as $item) : ?>
<div class="col-6">
<label><input name="subject_id[]" <?php if (in_array($item->id,$subject_id)) : ?>checked="checked"<?php endif; ?> type="checkbox" value="<?php echo $item->id?>"> <?php echo htmlspecialchars($item->name)?></label>
</div>
Expand Down

0 comments on commit 22fefff

Please sign in to comment.