Changeset 1845

Show
Ignore:
Timestamp:
04/10/08 23:10:43 (8 months ago)
Author:
bchoate
Message:

Fixed join to reuse multiblog blog_terms, blog_args when specifying need_entry attribute of 0. BugId:67128

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/release-34/lib/MT/Template/ContextHandlers.pm

    r1833 r1845  
    31053105        $blog_args{'unique'} = 1; 
    31063106        $blog_terms{'status'} = MT::Entry::RELEASE(); 
    3107         $args{'join'} = MT::Entry->join_on('author_id', \%blog_terms, \%blog_args); 
     3107        $args{'join'} = MT::Entry->join_on('author_id', 
     3108            \%blog_terms, \%blog_args); 
    31083109    } else { 
    31093110        $terms{'type'} = 1; 
     3111        $blog_args{'unique'} = 1; 
    31103112        require MT::Association; 
    3111         $args{'join'} = MT::Association->join_on('author_id', { blog_id => $blog_id }, { unique => 1 }); 
     3113        $args{'join'} = MT::Association->join_on('author_id', 
     3114            \%blog_terms, \%blog_args); 
    31123115    } 
    31133116