Closed (fixed)
Project:
Content Entity Clone
Version:
1.0.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
31 Oct 2022 at 10:45 UTC
Updated:
14 Jun 2023 at 11:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
pradhumanjain2311 commented@orakili
The error was fixed by removing "?" on line 62 in the following file
modules/contrib/content_entity_clone/src/Plugin/content_entity_clone/FieldProcessor/EntityLabelCloneSuffix.php
Comment #3
arti_parmar commentedComment #6
orakili commentedComment #7
arti_parmar commentedi have fixed this error with compatible drupal 9.4
Comment #8
orakili commented@arti_parmar, thanks for the patch but it has 2 issues:
getKey('label')is different fromgetLabel(). The former returns the name of the property that contains the entity label (ex:titlefor nodes ornamefor taxonomy terms) which is what we want thegetEntityTypeLabelField()function to return. The latter (getLabel) returns the label of the entity type (ex: "Content" for nodes" or "Taxonomy terms" for taxonomy terms).https://git.drupalcode.org/project/content_entity_clone/-/merge_requests/1 contains a working patch. If you have the chance could you kindly review it?
Comment #9
orakili commentedComment #10
arti_parmar commented@orakili , i have replace the code and fixed this error on this module so plese review.
Comment #12
orakili commentedNew release available: 1.0.2 with the fix.