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

Call resolveForDisplay method on template fields #163

Merged
merged 2 commits into from
Nov 23, 2023

Conversation

marttinnotta
Copy link
Contributor

@marttinnotta marttinnotta commented Jul 13, 2023

Currently calling displayUsing method on fields that are in templates have no effect. I added resolveForDisplay call to PageManagerController getFields without any checks but thats not ideal as edit view does not require this to be called.

There is also no way of knowing in PageManagerController getFields method which view you are currently on.
In Nova's native resource client request query (or body) usually contains that information (ex. https://d.pr/i/O5DZ2J) or by controller method that was invoked.

I added appropriate query param to getFields request to differentiate in what view called getFields

@Tarpsvo Tarpsvo merged commit 19eae13 into main Nov 23, 2023
@Tarpsvo Tarpsvo deleted the bugfix/add-missing-resolve-for-display branch November 23, 2023 13:35
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.

None yet

2 participants