spicywebau / craft-fieldlabels

Override Craft CMS field labels and instructions in the field layout designer
MIT License
123 stars 9 forks source link

Installation failure when commerce not installed but in vendor #23

Closed samuelbirch closed 5 years ago

samuelbirch commented 5 years ago

I have commerce in my vendor folder but it is not installed within craft, so when i try and install fieldlabels i get the error:

Call to a member function getProductTypes() on null

line 222: $layouts['commerceProductType'] = $this->_mapCommerceLayouts($commerce->getProductTypes()->getAllProductTypes());

in Plugin.php

ttempleton commented 5 years ago

Thanks for reporting, @samuelbirch. This will be fixed in Field Labels 1.0.4 which will be released within the next day.