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

[BUG] JSONLD hook fails if any EDTF field exists without an RDF mapping. #100

Open
rosiel opened this issue May 26, 2023 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@rosiel
Copy link
Member

rosiel commented May 26, 2023

What steps does it take to reproduce the issue?

  • Create a new EDTF field on a node, put some content in it, and load the node.
  • Check the watchdog logs. You will see:
    Warning: Undefined array key "field_new_date" in controlled_access_terms_jsonld_alter_normalized_array() (line 65 of /var/www/html/drupal/web/modules/contrib/controlled_access_terms/controlled_access_terms.module)

code is here:

foreach ($context['current_entity_rdf_mapping']->get('fieldMappings')[$field]['properties'] as $predicate) {

Any related open or closed issues to this bug report?
not that I found.

@rosiel rosiel added the bug Something isn't working label May 26, 2023
@rosiel rosiel self-assigned this May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant