Dotclear

Changeset 1769:6970a9e9bd50


Ignore:
Timestamp:
09/10/13 10:29:37 (12 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.5
Message:

Cope with same label categories in posts' filters. Fixes #1564

File:
1 edited

Legend:

Unmodified
Added
Removed
  • admin/posts.php

    r1179 r1769  
    6363     $categories_combo[__('None')] = 'NULL'; 
    6464     while ($categories->fetch()) { 
    65           $categories_combo[str_repeat('&nbsp;&nbsp;',$categories->level-1).($categories->level-1 == 0 ? '' : '&bull; '). 
     65          $label = str_repeat('&nbsp;&nbsp;',$categories->level-1).($categories->level-1 == 0 ? '' : '&bull; '). 
    6666               html::escapeHTML($categories->cat_title). 
    67                ' ('.$categories->nb_post.')'] = $categories->cat_id; 
    68      } 
    69       
     67               ' ('.$categories->nb_post.')'; 
     68          while (array_key_exists($label,$categories_combo)) { 
     69               $label .= ' '; 
     70          } 
     71          $categories_combo[$label] = $categories->cat_id; 
     72     } 
     73 
    7074     $status_combo = array( 
    7175     '-' => '' 
Note: See TracChangeset for help on using the changeset viewer.

Sites map