Changeset 986

Show
Ignore:
Timestamp:
12/26/06 04:36:33 (2 years ago)
Author:
fumiakiy
Message:

Fixed publish/draft itemset actions were not working. BugId: 39359; Fixed a forgotten modification of the usage of arguments. BugId: 46189

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/wheeljack/lib/MT/App/CMS.pm

    r976 r986  
    56975697    my $app = shift; 
    56985698    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')); 
    57005700} 
    57015701 
     
    57035703    my $app = shift; 
    57045704    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')); 
    57065706} 
    57075707 
     
    57195719    foreach my $id (@ids) { 
    57205720        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; 
    57225722        $entry->status($new_status); 
    57235723        $entry->save() and $rebuild_these{$id} = 1;