Skip to content
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

Duplicating an email forgets the theme #1986

Closed
richardolsson opened this issue May 25, 2024 · 0 comments · Fixed by #2137
Closed

Duplicating an email forgets the theme #1986

richardolsson opened this issue May 25, 2024 · 0 comments · Fixed by #2137
Labels
🐜 bug Something isn't working 🚪 entry-level Good for newcomers 🐟 Small Should be a quick-ish fix.

Comments

@richardolsson
Copy link
Member

Description

When using the "Duplicate" feature under the ellipsis menu for an email, the new (cloned) email is not configured to use the same theme, so it appears different.

Steps to reproduce

  1. Go to https://app.dev.zetkin.org/organize/1/projects
  2. In any campaign, create an email (which will use the default theme)
  3. In the ellipsis menu, choose "Duplicate"
  4. Look at the data for the new email (e.g. using /api/orgs/{ORG_ID}/emails/{EMAIL_ID}

Expected Behaviour

Data should contain reference to same theme

Actual Behaviour

Data does not contain a theme.

Screenshots (if you have any)

N/A

Proposed solution

I'm pretty sure it's just a matter of include the theme_id when cloning, the same way that content, title etc are being included.

@richardolsson richardolsson added 🐜 bug Something isn't working 🚪 entry-level Good for newcomers 🐟 Small Should be a quick-ish fix. labels May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐜 bug Something isn't working 🚪 entry-level Good for newcomers 🐟 Small Should be a quick-ish fix.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant