Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 3d8c8e2f

Von Martin Helmling vor fast 8 Jahren hinzugefügt

  • ID 3d8c8e2fa8dc160248411314e135b21e92332201
  • Vorgänger 58c266ea
  • Nachfolger edfac813

Link History zu EmailJournal

Einträge in History mit addition MAILED haben nun nicht die Rechnungsnummer sondern die ID des Emailjournals
in snumber stehen, also emailjournal_${journal_id}

Unterschiede anzeigen:

SL/Form.pm
1223 1223
  $self->{emailerr} = $mail->send();
1224 1224
  # $self->error($self->cleanup . "$err") if $self->{emailerr};
1225 1225
  $self->{email_journal_id} = $mail->{journalentry};
1226
  $self->{snumbers}  = "emailjournal" . "_" . $self->{email_journal_id};
1227
  $self->{what_done} = $::form->{type};
1228
  $self->{addition}  = "MAILED";
1229
  $self->save_history;
1226 1230

  
1227 1231
  #write back for message info and mail journal
1228 1232
  $self->{cc}  = $mail->{cc};
......
3177 3181
    while(my $hash_ref = $sth->fetchrow_hashref()) {
3178 3182
      $hash_ref->{addition} = $main::locale->text($hash_ref->{addition});
3179 3183
      $hash_ref->{what_done} = $main::locale->text($hash_ref->{what_done});
3180
      $hash_ref->{snumbers} =~ s/^.+_(.*)$/$1/g;
3184
      my ( $what, $number ) = split /_/, $hash_ref->{snumbers};
3185
      $hash_ref->{snumbers} = $number;
3186
      $hash_ref->{haslink}  = 'controller.pl?action=EmailJournal/show&id='.$number if $what eq 'emailjournal';
3187
      $hash_ref->{snumbers} = $main::locale->text("E-Mail").' '.$number if $what eq 'emailjournal';
3181 3188
      $tempArray[$i++] = $hash_ref;
3182 3189
    }
3183 3190
    $main::lxdebug->leave_sub() and return \@tempArray

Auch abrufbar als: Unified diff