Dotclear

Changeset 3733:ee69b09370ec for inc


Ignore:
Timestamp:
03/15/18 11:48:54 (8 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add latest (associated entry date) and oldest (associated entry date) info when request list of metadata: it will provide a way to sort these metadata.

Plugin Tags updated in order to use this new feature (widget and templates)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/core/class.dc.meta.php

    r3731 r3733  
    325325            $strReq = 'SELECT count(distinct M.meta_id) '; 
    326326        } else { 
    327             $strReq = 'SELECT M.meta_id, M.meta_type, COUNT(M.post_id) as count '; 
     327            $strReq = 'SELECT M.meta_id, M.meta_type, COUNT(M.post_id) as count, MAX(P.post_dt) as latest, MIN(P.post_dt) as oldest '; 
    328328        } 
    329329 
Note: See TracChangeset for help on using the changeset viewer.

Sites map