Changeset 2113

Show
Ignore:
Timestamp:
04/26/08 01:13:49 (3 months ago)
Author:
bchoate
Message:

Fix for saving and publishing new templates. BugId:79510

Files:

Legend:

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

    r2026 r2113  
    370370    } 
    371371    elsif ( $type eq 'template' && $q->param('rebuild') ) { 
     372        if ( !$id ) { 
     373            # add return argument for newly created templates 
     374            $app->add_return_arg( id => $obj->id ); 
     375        } 
    372376        $q->param( 'type',            'index-' . $obj->id ); 
    373377        $q->param( 'tmpl_id',         $obj->id );