Closed (fixed)
Project:
Commerce License
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Dec 2019 at 15:03 UTC
Updated:
19 Feb 2020 at 10:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
brooke_heaton commentedThis worked for me but resulted in a notice:
Notice: Undefined property: Drupal\commerce_license\Plugin\views\field\EntityLabel::$entityManager in Drupal\commerce_license\Plugin\views\field\EntityLabel->preRender()Comment #3
dgDatpasst commented@brooke_heaton this patch changes the property name to 'entityTypeManager' , so i guess your notice is an artifact from before patch installation.
Comment #4
joachim commentedThanks for the patch!
The problem with this change is that users running on versions of core older than 8.8 will get a similar error because they don't have $this->entityTypeManager.
We unfortunately need to put in if(isset()), and have both lines in to cover both cases.
Comment #5
sanduhrsPatch is attached.
Comment #6
bewhy commentedapplied patch from #5, works in 8.8
Comment #7
abu-zakham commentedI can confirm patch #5 fixed the issue.
Comment #8
heni_deepak commentedThank you #sanduhrs
Patch #5 very clear solution. it's working awesome. :D
Comment #10
joachim commentedCommitted! Thanks everyone!