Skip to content

Commit

Permalink
Fix table sorting with _pageid fields
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianheine committed Oct 22, 2010
1 parent b2d74af commit efe12f5
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions helper.php
Expand Up @@ -101,6 +101,7 @@ function _formatData($column, $value, &$R){
$outs[] = $R->internallink($val,null,null,true);
break;
case 'title':
case 'pageid':
list($id,$title) = explode('|',$val,2);
$id = $this->_addPrePostFixes($column['type'], $id, ':');
$outs[] = $R->internallink($id,$title,null,true);
Expand Down
1 change: 0 additions & 1 deletion syntax/table.php
Expand Up @@ -339,7 +339,6 @@ function _buildSQL(&$data){
switch ($type) {
case 'pageid':
$select[] = "pages.page || '|' || group_concat(".$tables[$key].".value,'\n')";
$col['type'] = 'title';
break;
case 'wiki':
$select[] = "pages.page || '|' || group_concat(".$tables[$key].".value,'\n')";
Expand Down

0 comments on commit efe12f5

Please sign in to comment.