Changeset 2536

Show
Ignore:
Timestamp:
06/10/08 02:19:23 (17 months ago)
Author:
takayama
Message:

Fixed BugId:80058
* Changed cache content into category objects instead of category ID

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-39/lib/MT/CMS/Entry.pm

    r2514 r2536  
    13551355        $placements_updated = 1; 
    13561356    } 
     1357    my @add_cat_obj; 
    13571358    for my $cat_id (@add_cat) { 
    13581359        my $cat = $cat_class->load($cat_id); 
     
    13711372          ); 
    13721373        $placements_updated = 1; 
     1374        push @add_cat_obj, $cat; 
    13731375    } 
    13741376    if ($placements_updated) { 
     1377        unshift @add_cat_obj, $obj->cache_property('category') 
     1378          if $obj->cache_property('category'); 
    13751379        $obj->cache_property( 'categories', undef, [] ); 
    1376         $obj->cache_property( 'categories', undef, \@add_cat ); 
     1380        $obj->cache_property( 'categories', undef, \@add_cat_obj ); 
    13771381    } 
    13781382