User tests: Successful: Unsuccessful:
Pull Request for Issue # .
This change was created with the help of AI (Claude Code).
The install script of plg_task_weblinks inserts the mail template plg_task_weblinks.broken_links into #__mail_templates only in install():
dropTable() id), the insert fails with a duplicate key error that is shown as an error message.update() never creates it, so a site where the template is missing (e.g. because the insert failed before) never gets it, and the broken links notification can't be sent.createTable() now checks if the template exists before inserting it, and is also called on update.
plg_task_weblinks.broken_links from #__mail_templates, then update the package with a build of this branch: the row exists again.The template exists after install and update; no duplicate key errors.
Missing template stays missing after an update; reinstalling can show "Error creating template_id plg_task_weblinks.broken_links: Duplicate entry …".
None