ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 7750


Ignore:
Timestamp:
Jul 18, 2008, 3:19:17 PM (13 years ago)
Author:
ebihara
Message:

#2689:r7729の変更により、ダッシュボードの「最新コミュニティ書き込み」のソート順や表示される日時が、コメントの書き込み時刻ではなくトピックの作成日時によっておこなうようになってしまっていたのを修正

Location:
OpenPNE/branches/stable-2.12.x/webapp/modules/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE/branches/stable-2.12.x/webapp/modules/admin/lib/db_admin.php

    r7732 r7750  
    24692469    }
    24702470
    2471     $select = 'SELECT c.name AS commu_name, c.image_filename AS commu_image,'
    2472             . ' ct.*, ct.r_datetime AS max_datetime';
     2471    $select = 'SELECT c.name AS commu_name, c.image_filename AS commu_image, ct.*';
    24732472    $from   = ' FROM c_commu AS c, c_commu_topic AS ct, c_commu_topic_comment AS ctc';
    24742473    $params = array();
     
    24762475            . ' AND c.c_commu_id = ct.c_commu_id';
    24772476    $group  = ' GROUP BY ct.c_commu_topic_id';
    2478     $order  = ' ORDER BY max_datetime DESC';
     2477    $order  = ' ORDER BY ct.u_datetime DESC';
    24792478
    24802479    $sql = $select . $from . $where . $group . $order;
  • OpenPNE/branches/stable-2.12.x/webapp/modules/admin/templates/inc_dashboard.tpl

    r7712 r7750  
    7575<dl>
    7676({foreach from=$new_topic_list item=item})
    77     <dt>({$item.max_datetime|date_format:"%m/%d %H:%M"})</dt>
     77    <dt>({$item.u_datetime|date_format:"%m/%d %H:%M"})</dt>
    7878    <dd><a href="({t_url _absolute=1 m=pc a=page_c_topic_detail})&amp;target_c_commu_topic_id=({$item.c_commu_topic_id})" target="_blank">({$item.name}) (({$item.count_comments|number_format}))</a> <span class="origin">(<a href="({t_url _absolute=1 m=pc a=page_c_home})&amp;target_c_commu_id=({$item.c_commu_id})" target="_blank">({$item.commu_name})</a>)</span></dd>
    7979({/foreach})
Note: See TracChangeset for help on using the changeset viewer.