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

Add default values to variables and check if set before including additional templates #4

Merged
merged 1 commit into from
Sep 25, 2024

Conversation

hknezevic
Copy link
Member

Some tabs in the admin UI, like URL tab, are extended (not decorated) by other Ibexa enterprise packages.
We are only decorating the location view URL tab, but adding our design ngadminui on top of adminui will use our template instead of the original one, which is in turn again reused in extended tab handlers.

If our decorator is not applied, the variables referenced in the template will not exist, and this will cause an exception in the admin UI.

I have just added default values to all the referenced variables, and wrapped the custom template includes in a conditional, so they will not be included if there is no need for it.

@petarjakopec
Copy link
Contributor

thanks @hknezevic!

@petarjakopec petarjakopec merged commit 4cbfa5d into master Sep 25, 2024
1 check passed
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

Successfully merging this pull request may close these issues.

2 participants