Changeset 986
- Timestamp:
- 12/26/06 04:36:33 (2 years ago)
- Files:
-
- branches/wheeljack/lib/MT/App/CMS.pm (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/wheeljack/lib/MT/App/CMS.pm
r976 r986 5697 5697 my $app = shift; 5698 5698 require MT::Entry; 5699 $app->update_entry_status(MT::Entry::HOLD(), $ _[0]->param('id'));5699 $app->update_entry_status(MT::Entry::HOLD(), $app->param('id')); 5700 5700 } 5701 5701 … … 5703 5703 my $app = shift; 5704 5704 require MT::Entry; 5705 $app->update_entry_status(MT::Entry::RELEASE(), $ _[0]->param('id'));5705 $app->update_entry_status(MT::Entry::RELEASE(), $app->param('id')); 5706 5706 } 5707 5707 … … 5719 5719 foreach my $id (@ids) { 5720 5720 my $entry = MT::Entry->load($id, {cached_ok=>1}) or return $app->errtrans("One of the entries ([_1]) did not actually exist", $id); 5721 next if $entry->status != $new_status;5721 next if $entry->status == $new_status; 5722 5722 $entry->status($new_status); 5723 5723 $entry->save() and $rebuild_these{$id} = 1;
