[TikiWiki-commits] [Git][tikiwiki/tiki][master] [FIX] Webmail: do not glue words (result from special characters strip)...

"Merci Jacob \(@mercihabam\) via TikiWiki-cvs" <[email protected]>
Newsgroups gmane.comp.cms.tiki.cvs
Message-ID <68f7534078aff_2ce0f10125dd@gitlab-sidekiq-low-urgency-cpu-bound-v2-7b88d5c6f7-jwd9w.mail>

Merci Jacob pushed to branch master at Tiki Wiki CMS Groupware / Tiki


Commits:
a5ad0de7 by Merci Jacob at 2025-10-21T09:24:05+00:00
[FIX] Webmail: do not glue words (result from special characters strip) together when generating suggestion items' lookup query
---
* [FIX] Webmail: do not glue words (result from special characters strip) together when generating suggestion items' lookup query

See merge request tikiwiki/tiki!8773

- - - - -


1 changed file:

- lib/cypht/modules/tiki/js_modules/moveToTracker.js


Changes:

=====================================
lib/cypht/modules/tiki/js_modules/moveToTracker.js
=====================================
@@ -12,9 +12,11 @@ function showMoveToTrackerModal(onSuccess) {
         open: function () {
             const modal = $(this);
 
+            const lookup = $('.js-header_subject').text().replace(/[^\w\s\.]/g, ' ').trim().split(' ').filter((word) => word.trim().length > 0).join(' or ');
+
             Hm_Ajax.request([
                 {name: 'hm_ajax_hook', value: 'ajax_tiki_msg_tracker_items'},
-                {name: 'lookup', value: $('.js-header_subject').text().replace(/[^\w\s\.']/g, '')},
+                {name: 'lookup', value: lookup},
                 {name: 'limit', value: 5},
                 {name: 'sort_mode', value: 'score_desc'},
             ], (res) => {



View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/a5ad0de7eb0c3295004c14e3ec328abbfd915735

-- 
View it on GitLab: https://gitlab.com/tikiwiki/tiki/-/commit/a5ad0de7eb0c3295004c14e3ec328abbfd915735
You're receiving this email because of your account on gitlab.com.

_______________________________________________
TikiWiki-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.