i really hope this finally does it
authorivan <ivan>
Thu, 4 Oct 2007 04:21:10 +0000 (04:21 +0000)
committerivan <ivan>
Thu, 4 Oct 2007 04:21:10 +0000 (04:21 +0000)
FS/FS/cust_main.pm

index bf7c2e9..a8a9ae4 100644 (file)
@@ -5789,6 +5789,7 @@ sub _agent_plandata {
 
   my $part_event_option =
     qsearchs({
 
   my $part_event_option =
     qsearchs({
+      'select'    => 'part_event_option.*',
       'table'     => 'part_event_option',
       'addl_from' => q{
         LEFT JOIN part_event USING ( eventpart )
       'table'     => 'part_event_option',
       'addl_from' => q{
         LEFT JOIN part_event USING ( eventpart )
@@ -5826,7 +5827,7 @@ sub _agent_plandata {
     
   unless ( $part_event_option ) {
     return $self->agent->invoice_template || ''
     
   unless ( $part_event_option ) {
     return $self->agent->invoice_template || ''
-      if $option eq '$agent_templatename';
+      if $option eq 'agent_templatename';
     return '';
   }
 
     return '';
   }