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

ISSUE-236: Citation Formatter check for null #238

Merged
merged 11 commits into from
Nov 7, 2022
Merged

ISSUE-236: Citation Formatter check for null #238

merged 11 commits into from
Nov 7, 2022

Conversation

aksm
Copy link
Contributor

@aksm aksm commented Nov 7, 2022

Resolves #236 for branch 1.1.0.

The check for NULL was already there. Just needed to move the rest of the metadata display entity rendering into the try block.

aksm and others added 9 commits November 7, 2022 10:49
This is a stupid Views issue, not us. When loading a formatter for a Field in a Views, the Views opens an Ajax Windows that calls the validation of the Settings form before even displaying. At that moment the $value is NULL and you can't load an entity with a NULL value. This small checks on nulls/elseif deals with it.  Also multiple entities should work now (but i have no use for that right now) Only issue is it will actually mark the field as "incomplete" but i don't see a way around this at all bc validation should not be called on Form render. Stupid views.
…ng in citation formatter into try block to check for NULL.
@aksm aksm requested a review from DiegoPino November 7, 2022 17:46
@aksm aksm self-assigned this Nov 7, 2022
@DiegoPino
Copy link
Member

DiegoPino commented Nov 7, 2022 via email

aksm added 2 commits November 7, 2022 13:44
…processing in citation formatter into try block to check for NULL."

This reverts commit b1f23e5.
Copy link
Member

@DiegoPino DiegoPino left a comment

Choose a reason for hiding this comment

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

Good!

@DiegoPino DiegoPino merged commit e9bef60 into esmero:1.1.0 Nov 7, 2022
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