MetaModels / attribute_tags

The tags attribute
GNU Lesser General Public License v3.0
0 stars 10 forks source link

Set default alias as column 'id' if not set #86

Closed zonky2 closed 3 years ago

zonky2 commented 4 years ago

see https://community.contao.org/de/showthread.php?79333-MetaModels-Filter-mit-Mehrfachauswahl

user have error request.CRITICAL: Uncaught PHP Exception Error: "Call to a member function searchFor() on null" at /var/www/vhosts/xxxxx.de/xxxxx/vendor/metamodels/attribute_tags/src/FilterRule/FilterRuleTags.php line 150 {"exception":"[object] (Error(code: 0): Call to a member function searchFor() on null at /var/www/vhosts/xxxxxxxx.de/xxxxx/vendor/metamodels/attribute_tags/src/FilterRule/FilterRuleTags.php:150)"} []

may be we should add column id as fallback https://github.com/MetaModels/attribute_tags/blob/master/src/FilterRule/FilterRuleTags.php#L126

zonky2 commented 4 years ago

@discordier what you mean?

zonky2 commented 3 years ago

@discordier ??

zonky2 commented 3 years ago

fixed in MM 2.2