Changeset 2514
- Timestamp:
- 06/06/08 00:32:50 (20 months ago)
- Files:
-
- 1 modified
-
branches/release-39/lib/MT/CMS/Entry.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-39/lib/MT/CMS/Entry.pm
r2454 r2514 1332 1332 $place->category_id($cat_id); 1333 1333 $place->save; 1334 my $cat = $cat_class->load($cat_id); 1335 $obj->cache_property( 'category', undef, $cat ); 1334 1336 } 1335 1337 else { 1336 1338 if ( $place ) { 1337 1339 $place->remove; 1340 $obj->cache_property( 'category', undef, undef ); 1338 1341 } 1339 1342 } … … 1368 1371 ); 1369 1372 $placements_updated = 1; 1373 } 1374 if ($placements_updated) { 1375 $obj->cache_property( 'categories', undef, [] ); 1376 $obj->cache_property( 'categories', undef, \@add_cat ); 1370 1377 } 1371 1378
