Skip to content

Commit

Permalink
Fixed issue #7741: Order of label sets in label set picker
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Apr 21, 2013
1 parent aa1ce79 commit 9133a4f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions application/helpers/common_helper.php
Expand Up @@ -7286,6 +7286,7 @@ function getLabelSets($languages = null)
}

$criteria = new CDbCriteria;
$criteria->order = "label_name";
foreach ($languagesarray as $k => $item)
{
$criteria->params[':lang_like1_' . $k] = "% $item %";
Expand Down
2 changes: 1 addition & 1 deletion application/views/admin/labels/labelbar_view.php
@@ -1,6 +1,6 @@
<div class='menubar'>
<div class='menubar-title ui-widget-header'>
<strong><?php $clang->eT("Label Set"); ?>:</strong> <?php echo $row['label_name']; ?>
<strong><?php printf($clang->gT("Label set:%s %s (ID:%s)"),'</strong>',$row['label_name'],$lid); ?>
</div>
<div class='menubar-main'>
<div class='menubar-left'>
Expand Down
2 changes: 1 addition & 1 deletion application/views/admin/labels/labelsetsbar_view.php
Expand Up @@ -27,7 +27,7 @@
{ ?>
<option value='<?php echo $this->createUrl("admin/labels/sa/view/lid/".$lb[0]); ?>'
<?php if ($lb[0] == $lid) { ?> selected='selected' <?php } ?>
><?php echo $lb[0]; ?>: <?php echo $lb[1]; ?></option>
><?php echo $lb[1]; ?></option>
<?php }
} ?>

Expand Down

0 comments on commit 9133a4f

Please sign in to comment.