Changeset 2536
- Timestamp:
- 06/10/08 02:19:23 (5 months ago)
- Files:
-
- branches/release-39/lib/MT/CMS/Entry.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/release-39/lib/MT/CMS/Entry.pm
r2514 r2536 1355 1355 $placements_updated = 1; 1356 1356 } 1357 my @add_cat_obj; 1357 1358 for my $cat_id (@add_cat) { 1358 1359 my $cat = $cat_class->load($cat_id); … … 1371 1372 ); 1372 1373 $placements_updated = 1; 1374 push @add_cat_obj, $cat; 1373 1375 } 1374 1376 if ($placements_updated) { 1377 unshift @add_cat_obj, $obj->cache_property('category') 1378 if $obj->cache_property('category'); 1375 1379 $obj->cache_property( 'categories', undef, [] ); 1376 $obj->cache_property( 'categories', undef, \@add_cat );1380 $obj->cache_property( 'categories', undef, \@add_cat_obj ); 1377 1381 } 1378 1382
