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

Large ifs break entry saving (edit_entry.tmpl) #1262

Open
dennis-metzger opened this issue Mar 26, 2020 · 0 comments
Open

Large ifs break entry saving (edit_entry.tmpl) #1262

dennis-metzger opened this issue Mar 26, 2020 · 0 comments

Comments

@dennis-metzger
Copy link

dennis-metzger commented Mar 26, 2020

Hello,

I am currently trying to have different edit_entry.tmpl pages in the dashboard and I'm trying to put the logic into a large file:

edit_entry.tmpl:

<mt:if name="blog_id" eq="4">
## original content of edit_entry.tmpl 
<mt:elseif name="blog_id" eq="20">
## original content of edit_entry.tmpl 
</mt:if>

For testing purposes I have put the original content of edit_entry.tmpl into both cases (since apparently mt:include loses the current scope) and I have noticed that when you create a new entry, entries for the blog_id listed first in the if (4 in the case above), wont save. New entries for the blog with the id 20 will save normally.

Nothing particular happens besides that. It will show the "saved successfully" message, but all the custom fields are empty.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant