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

Update HasTags.php #507

Closed
wants to merge 1 commit into from
Closed

Update HasTags.php #507

wants to merge 1 commit into from

Conversation

Sindoweb
Copy link

This change fixed an issue I encountered when returning tags with a type. $this->tags was Null. Fetching the tags (instead of relying on the variable) and filtering them resolved the (read: my) issue.

This change fixed an issue I encountered when returning tags with a type. $this->tags was Null. Fetching the tags and filtering them resolved the issue.
@Sindoweb
Copy link
Author

Sindoweb commented Jun 14, 2024

Also in reference #[#279]

@freekmurze
Copy link
Member

Mmmm, strange, I'm not inclined to merge this, as it would have a performance implication. A query would always be performed with the new code. Using the old code, the query would only be performed once.

@freekmurze freekmurze closed this Jun 17, 2024
@Sindoweb
Copy link
Author

I understand - but the old code also fails.

I'm going to put a screenshot here just incase someone can make a better fix.

image

@oxodesign
Copy link

@Sindoweb check if you are casting "tags" as array in your model (or have a tag function/property in your model that conflicts with the package)! cc @freekmurze

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.

3 participants