Skip to content

Commit

Permalink
Dev: Add more columns to sort Cint order list by
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Aug 10, 2016
1 parent 209cefd commit 12fe884
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions application/core/plugins/CintLink/model/CintLinkOrder.php
Expand Up @@ -50,9 +50,13 @@ public function search($surveyId = null)

$sort = new CSort();
$sort->attributes = array(
'url'=>array(
'desc'=>'url desc'
));
'url' => array(
'desc'=>'url desc'
),
'created',
'ordered_by',
'status'
);
$sort->defaultOrder = array('url' => CSort::SORT_DESC);

$criteria = $this->getCriteria($surveyId);
Expand Down
2 changes: 1 addition & 1 deletion application/core/plugins/CintLink/views/dashboard.php
Expand Up @@ -71,7 +71,7 @@ class='btn btn-default'
'name' => 'target-group',
'header' => $plugin->gT('Target group'),
'value' => '(strlen($data->targetGroup) > 50
? CHtml::tag("span", array("title"=>$data->targetGroup, "data-toggle" => "tooltip"), ellipsize($data->targetGroup, 50))
? CHtml::tag("span", array("title" => $data->targetGroup, "data-toggle" => "tooltip"), ellipsize($data->targetGroup, 50))
: CHtml::encode($data->targetGroup))',
'type' => 'raw'
);
Expand Down

0 comments on commit 12fe884

Please sign in to comment.