Closed (fixed)
Project:
Course credit
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
3 Feb 2020 at 17:46 UTC
Updated:
20 Feb 2020 at 16:39 UTC
Jump to comment: Most recent
The course credit field that is defined via hook_field_extra_fields() and populated in hook_node_view() is output regardless of whether there are any applicable credits.
Added a patch that simply checks that there are relevant credits first before adding the #markup property.
| Comment | File | Size | Author |
|---|---|---|---|
| course_credit-empty-field.patch | 499 bytes | kyoder |
Comments
Comment #2
djdevinComment #3
djdevin