Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-5316

Add an option to revert email templates to default

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 5.10.0
    • Fix Version/s: 5.13.0-b1
    • Component/s: Staff Interface
    • Labels:
      None

      Description

      People mess up email templates all the time, and there's no way to restore unless they install fresh and copy/paste from that fresh install.

      We store email templates in the emails table. emails.company_id is the company ID. So, I think we could store these default templates with an ID of 0. On install, we should populate the emails table with another copy of the templates with company_id 0. Whenever we make changes to email templates, we will need to remember to update/create the same templates for company ID 0.

      In the UI

      • Add a red button with modal popup confirmation to the left of "Cancel" button called "Revert to Default".
      • Add a bulk option on the template listing called "Revert to Default".

      Reverting will replace the subject, text, html from the company_id 0 template. Do not replace from email, name, or remove any attachments, etc. Only subject, and html and text content.

        Activity

        admin Paul Phillips created issue -
        admin Paul Phillips made changes -
        Field Original Value New Value
        Rank Ranked higher
        admin Paul Phillips made changes -
        Rank Ranked lower

          People

          • Assignee:
            Unassigned
            Reporter:
            admin Paul Phillips
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: