Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a5531bb6

Von Bernd Bleßmann vor fast 3 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
}
if ($form->{phone_notes}) {
$query .= qq| AND (phone_notes.subject ILIKE ? OR phone_notes.body ILIKE ?)|;
$query .= qq| AND (phone_notes.subject ILIKE ? OR regexp_replace(phone_notes.body, '<[^>]*>', '', 'g') ILIKE ?)|;
push(@values, like($form->{phone_notes}), like($form->{phone_notes}));
}
......
OR EXISTS (
SELECT notes.id FROM notes
WHERE notes.trans_id = o.id AND notes.trans_module LIKE 'oe'
AND (notes.subject ILIKE ? OR notes.body ILIKE ?))
AND (notes.subject ILIKE ? OR regexp_replace(notes.body, '<[^>]*>', '', 'g') ILIKE ?))
SQL
$query .= <<SQL;

Auch abrufbar als: Unified diff