Skip to content

Conversation

@maurei
Copy link
Member

@maurei maurei commented Jan 19, 2021

Fixes #924

An invalid cast to IIdentifiable threw off the hook executor.

Additionally, previously the IResourceService.GetSecondaryAsync returned a primary resource with a set relationship field that corresponded to the secondary resources of the request. This has been changed recently to returning just the requested secondary resources. The hook executor also needs to take this into account.

Copy link
Contributor

@bart-degreed bart-degreed left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried using TypeHelper.ExtractResources, but it does not work.

@bart-degreed bart-degreed merged commit b09e6b1 into master Jan 19, 2021
@bart-degreed bart-degreed deleted the hooks-hotfix branch January 19, 2021 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

After enabling options.EnableResourceHooks = true; I get a NullReference on GET Articles/GetSecondary [id/relationshipName]

3 participants