Changeset 2919

Show
Ignore:
Timestamp:
08/11/08 20:59:08 (4 months ago)
Author:
bchoate
Message:

Fixed 'publish' button so it would republish files even if the entry status did not update. BugId:80957

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/release-42/lib/MT/App/CMS.pm

    r2916 r2919  
    422422    return { 
    423423        'entry' => { 
    424             'set_published' => { 
    425                 label      => "Publish Entries", 
    426                 order      => 100, 
    427                 code       => "${pkg}Entry::publish_entries", 
    428                 permission => 'edit_all_posts,publish_post', 
    429                 condition  => sub { 
    430                     return 0 if $app->mode eq 'view'; 
    431                     return $app->blog && $app->blog->site_path ? 1 : 0; 
    432                 }, 
    433             }, 
    434424            'set_draft' => { 
    435425                label      => "Unpublish Entries", 
     
    477467        }, 
    478468        'page' => { 
    479             'set_published' => { 
    480                 label      => "Publish Pages", 
    481                 order      => 100, 
    482                 code       => "${pkg}Entry::publish_entries", 
    483                 permission => 'manage_pages', 
    484                 condition  => sub { 
    485                     return 0 if $app->mode eq 'view'; 
    486                     return $app->blog && $app->blog->site_path ? 1 : 0; 
    487                 }, 
    488             }, 
    489469            'set_draft' => { 
    490470                label      => "Unpublish Pages", 
  • branches/release-42/lib/MT/CMS/Entry.pm

    r2871 r2919  
    20432043          or return $app->errtrans( 
    20442044            "One of the entries ([_1]) did not actually exist", $id ); 
    2045         next if $entry->status == $new_status; 
    20462045        if ( $app->config('DeleteFilesAtRebuild') 
    20472046            && ( MT::Entry::RELEASE() eq $entry->status ) )