diff --git a/administrator/components/com_admin/sql/updates/mysql/6.1.0-2025-09-05.sql b/administrator/components/com_admin/sql/updates/mysql/6.1.0-2025-09-05.sql new file mode 100644 index 000000000000..d2adee50b444 --- /dev/null +++ b/administrator/components/com_admin/sql/updates/mysql/6.1.0-2025-09-05.sql @@ -0,0 +1,38 @@ +-- remove old email parameter from scheduled tasks +UPDATE `#__scheduler_task` +SET `params` = JSON_REMOVE(`params`, '$.email') +WHERE JSON_CONTAINS_PATH(`params`, 'one', '$.email'); + +-- add post-installation message for task update notification. +-- +-- See https://github.com/joomla/joomla-cms/pull/43182 for details. +-- +INSERT INTO `#__postinstall_messages` +(`extension_id`, +`title_key`, +`description_key`, +`action_key`, +`language_extension`, +`language_client_id`, +`type`, +`action_file`, +`action`, +`condition_file`, +`condition_method`, +`version_introduced`, +`enabled`) +SELECT +`extension_id`, +'PLG_TASK_UPDATENOTIFICATION_POSTINSTALL_TITLE', +'PLG_TASK_UPDATENOTIFICATION_POSTINSTALL_DESCRIPTION', +'', +'plg_task_updatenotification', +1, +'message', +'', +'', +'admin://plugins/task/updatenotification/postinstall/updatenotification.php', +'', +'6.1.0', +1 +FROM `#__extensions` WHERE `name` = 'files_joomla'; diff --git a/administrator/components/com_admin/sql/updates/postgresql/6.1.0-2025-09-05.sql b/administrator/components/com_admin/sql/updates/postgresql/6.1.0-2025-09-05.sql new file mode 100644 index 000000000000..14ae40f5cf17 --- /dev/null +++ b/administrator/components/com_admin/sql/updates/postgresql/6.1.0-2025-09-05.sql @@ -0,0 +1,38 @@ +-- remove old email parameter from scheduled tasks +UPDATE "#__scheduler_task" +SET "params" = jsonb_set("params", '{email}', '""') +WHERE "params" ? 'email'; + +-- add post-installation message for task update notification. +-- +-- See https://github.com/joomla/joomla-cms/pull/43182 for details. +-- +INSERT INTO "#__postinstall_messages" +("extension_id", +"title_key", +"description_key", +"action_key", +"language_extension", +"language_client_id", +"type", +"action_file", +"action", +"condition_file", +"condition_method", +"version_introduced", +"enabled") +SELECT +"extension_id", +'PLG_TASK_UPDATENOTIFICATION_POSTINSTALL_TITLE', +'PLG_TASK_UPDATENOTIFICATION_POSTINSTALL_DESCRIPTION', +'', +'plg_task_updatenotification', +1, +'message', +'', +'', +'admin://plugins/task/updatenotification/postinstall/updatenotification.php', +'', +'6.1.0', +1 +FROM "#__extensions" WHERE "name" = 'files_joomla'; \ No newline at end of file diff --git a/administrator/language/en-GB/plg_task_updatenotification.ini b/administrator/language/en-GB/plg_task_updatenotification.ini index 141df42dbb93..2bb8de8c1a16 100644 --- a/administrator/language/en-GB/plg_task_updatenotification.ini +++ b/administrator/language/en-GB/plg_task_updatenotification.ini @@ -4,8 +4,12 @@ ; Note : All ini files need to be saved as UTF-8 PLG_TASK_UPDATENOTIFICATION="Task - Joomla! Update Notification" +; The following string is deprecated and will be removed with 8. PLG_TASK_UPDATENOTIFICATION_EMAIL_DESC="A comma separated list of the email addresses which will receive the update notification emails. The addresses in the list MUST belong to existing users of your site who have the Super User privilege. If none of the listed emails belongs to Super Users, or if it's left blank, all Super Users of this site will receive the update notification email." +; The following string is deprecated and will be removed with 8. PLG_TASK_UPDATENOTIFICATION_EMAIL_LBL="Super User Emails" +PLG_TASK_UPDATENOTIFICATION_EMAILGROUPS_DESC="All users in the selected groups will receive the emails. If no users are found, the emails are sent to all Super Users. Recipients MUST have the Receive System Emails option enabled." +PLG_TASK_UPDATENOTIFICATION_EMAILGROUPS_LBL="Send Email to User Groups" PLG_TASK_UPDATENOTIFICATION_SEND_TITLE="Joomla! Update Notification" PLG_TASK_UPDATENOTIFICATION_SEND_DESC="This task periodically checks for the availability of new Joomla! versions. When one is found it will send you an email, reminding you to update. You can customise the email at System → Mail Templates." PLG_TASK_UPDATENOTIFICATION_LANGUAGE_OVERRIDE_DESC="Select a language for the update notification emails. Set to Auto to send them in the site language at the time." @@ -23,4 +27,6 @@ PLG_TASK_UPDATENOTIFICATION_EMAIL_BODY="This email IS NOT sent by the Joomla! pr PLG_TASK_UPDATENOTIFICATION_EMAIL_SUBJECT="Joomla! Update available for {SITENAME} – {URL}" PLG_TASK_UPDATENOTIFICATION_MAIL_MAIL_DESC="Sent to the site administrators when the "Joomla! Update Notification" task plugin detects an update." PLG_TASK_UPDATENOTIFICATION_MAIL_MAIL_TITLE="Joomla: Update Notification" -PLG_TASK_UPDATENOTIFICATION_XML_DESCRIPTION="This task periodically checks for the availability of new Joomla! versions. When one is found it will send you an email, reminding you to update. You can customise the email at System → Mail Templates." +PLG_TASK_UPDATENOTIFICATION_POSTINSTALL_DESCRIPTION="
The "Joomla! Update Notification" task sends an email to the site administrators when it detects that a new Joomla! version is available. The email is per default sent to all super users of the system.
It is now possible to send notifications to one or more groups of users, who have the sendEmail permission, also if they are not super users.
If in your system recipients were defined as a comma separated list of email addresses, this list has been removed with update to version 6.1.
Please check the plugin's options and adjust them to your needs.
" +PLG_TASK_UPDATENOTIFICATION_POSTINSTALL_TITLE="Joomla! Update Notification Recipient Change" +PLG_TASK_UPDATENOTIFICATION_XML_DESCRIPTION="This task periodically checks for the availability of new Joomla! versions. When one is found it will send you an email, reminding you to update. You can customise the email at System → Mail Templates." \ No newline at end of file diff --git a/plugins/task/updatenotification/forms/sendForm.xml b/plugins/task/updatenotification/forms/sendForm.xml index 47fe0c72d808..ae96c428e5f8 100644 --- a/plugins/task/updatenotification/forms/sendForm.xml +++ b/plugins/task/updatenotification/forms/sendForm.xml @@ -3,11 +3,13 @@