?
avatar PhilETaylor
PhilETaylor
8 May 2021

Steps to reproduce the issue

System -> Mail Templates

Search for "Global"

or search for "Privacy: Request Removal of Data"

Expected result

"Global Configuration: Test Mail" to show in search results

or "Privacy: Request Removal of Data" to show in the search results

Actual result

No matching results

This is because the TITLE of the email message is NOT searched

It seems the only column searched is the ID

Also the popover says to prefix with ID: to search the id, but if you search for "com_messages.new_message" it finds the email without searching for "ID:com_messages.new_message"

avatar PhilETaylor PhilETaylor - open - 8 May 2021
avatar joomla-cms-bot joomla-cms-bot - change - 8 May 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 8 May 2021
avatar PhilETaylor PhilETaylor - change - 8 May 2021
Title
[4] Mail Template Search only searches part of the title
[4] Mail Template Search only searches part of the data
avatar PhilETaylor PhilETaylor - edited - 8 May 2021
avatar PhilETaylor PhilETaylor - change - 8 May 2021
The description was changed
avatar PhilETaylor PhilETaylor - edited - 8 May 2021
avatar PhilETaylor
PhilETaylor - comment - 8 May 2021

Actually the search will never work - because I type in my english word, and Joomla compares that with COM_ACTIONLOGS_EMAIL_SUBJECT which is hardcoded in the database.

You can only search for templates you already have an override for

avatar brianteeman
brianteeman - comment - 8 May 2021

That is why it says "Search in mails. Prefix with ID: to search for a template ID."

I agree its badly worded. It is supposed to be read as
Title = Search in mails
Instruction = Prefix with ID: to search for a template ID.

I think

avatar PhilETaylor
PhilETaylor - comment - 8 May 2021

You can only search for templates you already have an override for

If you have an override for COM_ACTIONLOGS_EMAIL_SUBJECT with a new subject line of "askjdgas" you can then search for "askjdgas" and it will show you that override.

but if you are searching for "Actionlogs: Notification Mail" (the title of the email) then it will not find it

avatar joomdonation
joomdonation - comment - 9 May 2021

As you can see, we use language key to store subject of the email, so it is just searchable. The same with user actions logs, I think.

avatar PhilETaylor
PhilETaylor - comment - 9 May 2021

As you can see, we use language key to store subject of the email, so it is just searchable.

The problem is that the database table is used for two things.

  1. The list of available mails that can be customised
  2. The users, language specific, customised template for an email.

The 1) is using language strings like COM_ACTIONLOGS_EMAIL_SUBJECT,
The 2) is using the English (or other lang) plain text sentence "My Subject Line"

My work on redoing the Mail Template Overrides means that you will never see the 1) in a searchable list view any longer, they will be Add Cards only.

Screenshot 2021-05-09 at 11 44 44

This means the "search" to find a template to override will be the place this will need fixing,

This is important because no one is going to be searching for "com_privacy.notification.admin.export" they will be searching for a few words like "Request Export"

Also, although the current message states "Search in mails. Prefix with ID: to search for a template ID." the code is looking for lowercase "id:" so another bug there.

Moving from the standard filter.search box and moving to the sieve like search filter (see the Add Module page) would fix this, as the plain english is already in the cards...

Im on the case with the rewrite... so just ignore this issue for now.

avatar PhilETaylor PhilETaylor - change - 9 May 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-05-09 10:51:41
Closed_By PhilETaylor
avatar PhilETaylor PhilETaylor - close - 9 May 2021
avatar joomdonation
joomdonation - comment - 9 May 2021

@PhilETaylor I think you should ping some of of our maintainers to look at your propose solution first or just make a PR quickly to show the idea to see if it could be excepted. That could save your time in case it is not accepted.

avatar PhilETaylor
PhilETaylor - comment - 9 May 2021

see the video at #33657 (comment)

Add a Comment

Login with GitHub to post a comment