Changeset 2800

Show
Ignore:
Timestamp:
07/16/08 17:09:28 (3 months ago)
Author:
bchoate
Message:

Fix for uploading a file for a custom field input.

Files:

Legend:

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

    r2726 r2800  
    345345 
    346346    # caller wants asset without any option step, so insert immediately 
    347     return insert($app) if $app->param('asset_select'); 
     347    if ($app->param('asset_select')) { 
     348        $app->param( 'id', $asset->id ); 
     349        return insert($app); 
     350    } 
    348351 
    349352    my $param = {