Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a5531bb6

Von Bernd Bleßmann vor fast 2 Jahren hinzugefügt

  • ID a5531bb634f49c776a3a45324d2a22db70c9e230
  • Vorgänger af08a0a8
  • Nachfolger c7dfa13f

Telefonnotizen in HTML: HTML-Tags bei Suche (Notizen und Volltext) entfernen

Unterschiede anzeigen:

SL/OE.pm
314 314
  }
315 315

  
316 316
  if ($form->{phone_notes}) {
317
    $query .= qq| AND (phone_notes.subject ILIKE ? OR phone_notes.body ILIKE ?)|;
317
    $query .= qq| AND (phone_notes.subject ILIKE ? OR regexp_replace(phone_notes.body, '<[^>]*>', '', 'g') ILIKE ?)|;
318 318
    push(@values, like($form->{phone_notes}), like($form->{phone_notes}));
319 319
  }
320 320

  
......
343 343
      OR EXISTS (
344 344
        SELECT notes.id FROM notes
345 345
          WHERE notes.trans_id = o.id AND notes.trans_module LIKE 'oe'
346
            AND (notes.subject ILIKE ? OR notes.body ILIKE ?))
346
            AND (notes.subject ILIKE ? OR regexp_replace(notes.body, '<[^>]*>', '', 'g') ILIKE ?))
347 347
SQL
348 348

  
349 349
    $query .= <<SQL;

Auch abrufbar als: Unified diff