Revision a5531bb6
Von Bernd Bleßmann vor mehr als 2 Jahren hinzugefügt
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
Telefonnotizen in HTML: HTML-Tags bei Suche (Notizen und Volltext) entfernen