Changeset 0fc1496 in osmose-frontend


Ignore:
Timestamp:
May 8, 2014 9:03:55 PM (6 years ago)
Author:
Frédéric Rodrigo <fred.rodrigo@…>
Children:
5c11e3e
Parents:
f054b5c
git-author:
Frédéric Rodrigo <fred.rodrigo@…> (08/05/2014 19:09:28)
git-committer:
Frédéric Rodrigo <fred.rodrigo@…> (08/05/2014 21:03:55)
Message:

No display error count on errors list when no item in params

File:
1 edited

Legend:

Unmodified
Added
Removed
  • errors.py

    rf054b5c r0fc1496  
    139139    params.limit = None 
    140140 
    141     if format == None: 
     141    if format == None and params.item: 
    142142        errors_groups = query._count(db, params, [ 
    143143            "dynpoi_class.item", 
     
    155155                total += res["count"] 
    156156    else: 
    157         errors_groups = None 
     157        errors_groups = [] 
    158158        total = 0 
    159159 
Note: See TracChangeset for help on using the changeset viewer.