-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[4.2] Mail Templates htmlbody #37701
Conversation
administrator/components/com_admin/sql/updates/mysql/4.1.3-2022-04-30.sql
Outdated
Show resolved
Hide resolved
administrator/components/com_admin/sql/updates/mysql/4.1.3-2022-04-30.sql
Outdated
Show resolved
Hide resolved
…2-04-30.sql Co-authored-by: Richard Fath <richard67@users.noreply.github.com>
@brianteeman To make it perfect you could add the check of the database checker in each case (update or new install) to the testing instructions. In case of an update to the patched package for the PR, the checker should only show the usual error about not matching CMS version when using such packages, and in case of a new installation no errors should be shown. |
I have tested this item ✅ successfully on 594d6b9 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37701. |
@brianteeman It needs to rename the update SQL script. Assuming that this PR remains on the 4.1-dev branch, it should be a name with version 4.1.5, and when 4.1.5 is released before this PR is merged, it needs a name with version 4.1.6. But I think the PR should be rebased to 4.2-dev. If this is the case, it needs a name with version 4.2.0 and a later date than 2022-05-15 (because "4.2.0-2022-05-15.sql" is the latest 4.2.0 update SQL script). @roland-d Shall this PR be rebased to 4.2-dev? |
I await your response before making any changes. To be clear this is NOT a new feature it is fixing a bug |
@brianteeman I know. But 4.1.5 is already in RC phase, so @bembelimen will merge only extremely urgent bug fixes (or release blocker), and very likely will be the last 4.1.x release, as far as I know, so it will go in 4.2-dev anyway. |
Rebased to 4.2 and changed the filename |
I’ve restored the previous human test result in the issue tracker because the changes which invalidated the test count were just a clean rebase and the rename of the update SQL script (which I reviewed). |
I have tested this item ✅ successfully on b033c55 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37701. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37701. |
Thanks everybody |
Summary of Changes
html emails are much much bigger than plain text emails. Using some email templates from beefree.io was almost impossible as they were all too big to be saved. Checking the database the field type was TEXT and yet for the fulltext field in #__content MEDIUMTEXT was used. So it wasnt even possible to use an entire article in the mail template.
This PR changes the field to MEDIUMTEXT in mysql for updates and new installations. Note postgres doesnt need any change as it only has one datatype for text.
Testing Instructions
Upgrade with the prebuilt test packages and check the datatype of the htmlbody field in the #__mail_templates table
Clean install with he prebuilt test packages and check the datatype of the htmlbody field in the #__mail_templates table
check of the database checker in the system dashboard.
. In case of an update to the patched package for the PR, the checker should only show the usual error about not matching CMS version when using such packages, and in case of a new installation no errors should be shown.
Actual result BEFORE applying this Pull Request
TEXT
Expected result AFTER applying this Pull Request
MEDIUMTEXT
Documentation Changes Required
none