Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e453ae7c

Von Tamino Steinert vor 11 Monaten hinzugefügt

  • ID e453ae7c09446db0abc1b99143b1866c5f39685a
  • Vorgänger 330343c7
  • Nachfolger a03a52eb

IMAPClient: validiere Parameter bei der Übergabe

Unterschiede anzeigen:

SL/Controller/Order.pm
181 181
  if ($::form->{id}) {
182 182
    $self->load_order;
183 183

  
184
    if ($self->order->is_sales) {
185
      my $imap_client = SL::IMAPClient->new();
184
    if ($self->order->is_sales && $::lx_office_conf{imap_client}->{enabled}) {
185
      my $imap_client = SL::IMAPClient->new(%{$::lx_office_conf{imap_client}});
186 186
      if ($imap_client) {
187
        $imap_client->update_email_files_for_record($self->order);
187
        $imap_client->update_email_files_for_record(record => $self->order);
188 188
      }
189 189
    }
190 190

  
......
2158 2158
    );
2159 2159
  }
2160 2160

  
2161
  if ($is_new && $self->order->is_sales) {
2162
    my $imap_client = SL::IMAPClient->new();
2161
  if ($is_new && $self->order->is_sales && $::lx_office_conf{imap_client}->{enabled}) {
2162
    my $imap_client = SL::IMAPClient->new(%{$::lx_office_conf{imap_client}});
2163 2163
    if ($imap_client) {
2164
      $imap_client->create_folder_for_record($self->order);
2164
      $imap_client->create_folder_for_record(record => $self->order);
2165 2165
    }
2166 2166
  }
2167 2167

  

Auch abrufbar als: Unified diff