Changeset 2514

Show
Ignore:
Timestamp:
06/06/08 00:32:50 (20 months ago)
Author:
auno
Message:

Fixed to save fileinfo properly. Clear cache category/folder data when changed. BugzID:79934

Files:
1 modified

Legend:

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

    r2454 r2514  
    13321332        $place->category_id($cat_id); 
    13331333        $place->save; 
     1334        my $cat = $cat_class->load($cat_id); 
     1335        $obj->cache_property( 'category', undef, $cat ); 
    13341336    } 
    13351337    else { 
    13361338        if ( $place ) { 
    13371339            $place->remove; 
     1340            $obj->cache_property( 'category', undef, undef ); 
    13381341        } 
    13391342    } 
     
    13681371          ); 
    13691372        $placements_updated = 1; 
     1373    } 
     1374    if ($placements_updated) { 
     1375        $obj->cache_property( 'categories', undef, [] ); 
     1376        $obj->cache_property( 'categories', undef, \@add_cat ); 
    13701377    } 
    13711378