entity_plus property callbacks still reference undefined Drupal 7 function names
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 88/100
Research direction
Inspect timefield_property_info_callback() and includes/entity_plus.property.inc to compare the defined entity_plus_property_verbatim_get/set names with the eight property-level callback references. Rename the remaining unprefixed references, then verify that no entity_property_verbatim_get/set references remain and that property reads and writes resolve correctly.
Written by the indexing model from the issue text.
Description
timefield_property_info_callback() sets getter callback / setter callback for the timefield properties. Issue #3 (released in 1.0.1) renamed the field-level pair to entity_plus_metadata_field_verbatim_get/set, but the property-level callbacks in the same function still use the Drupal 7 names entity_property_verbatim_get / entity_property_verbatim_set (8 occurrences).
entity_plus only defines the prefixed functions (entity_plus_property_verbatim_get/set in includes/entity_plus.property.inc); the unprefixed Drupal 7 names don't exist in Backdrop. So on any site that reads these properties (Rules conditions/actions, tokens, entity metadata), the getter/setter resolves to an undefined function.
Still present on both 1.x-1.0.1 and the 1.x-1.x dev tip.
Fix: rename the remaining entity_property_verbatim_get/set references in timefield_property_info_callback() to their entity_plus_ equivalents, matching what #3 did for the field pair.
- Dominant language
- JavaScript
- Stars
- 0
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from backdrop-contrib/timefield
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
backdrop-contrib/timefield#8 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
backdrop-contrib/timefield#1 · 1 comment ·
All issues in backdrop-contrib/timefield
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·