MetaModels / core

MetaModels Core Module
GNU Lesser General Public License v3.0
96 stars 42 forks source link

If updating MM 'URL-Type for parameters' should be set to 'Slug and Get allowed' #1456

Closed MacKP closed 2 years ago

MacKP commented 2 years ago

Checklist before I submit this issue report

I confirm that:

My environment is:

(Please fill in the actual values from your environment - check Contao Manager or use composer show)

Key Value Comments
PHP version: 7.4
Contao version: 4.9. 22
MetaModels version: 2.2.dev
Installed MetaModels packages:
DCG version:

Issue description

After updating from MM 2.1 to 2.2 i didn't get filter-Parameters in my Hook. The Problem was the Setting of 'URL-Type for parameters' in the Module. It was set to 'NULL' in the DB. For BC these Setting should be set to 'Slug and Get allowed' via migration. Or if there is 'NULL' set in DB it should work like both is selected?

Kind regards

MacKP commented 2 years ago

in tl_module.metamodel_sort_param_type set to 'slugNget'

zonky2 commented 2 years ago

warum machst du immer Leerzeichen um deine x ?

- - [ x ] I have...
+ - [x] I have...
MacKP commented 2 years ago

In der Vorlage ist ein Leerzeichen enthalten.. da denke ich immer, dass muss da hin. Mach die Vorlage anders und ich mach das nicht mehr. Außerdem wäre es ja langweilig, wenn du nichts zu einem Ticket schreiben könntest, also muss ich ja Fehler einbauen :P xD

zonky2 commented 2 years ago

github will das so für leere checkboxen...

zonky2 commented 2 years ago

workaround

UPDATE tl_content
SET metamodel_sort_param_type = 'slug'
WHERE metamodel_sort_param_type = ''

and

UPDATE tl_module
SET metamodel_sort_param_type = 'slug'
WHERE metamodel_sort_param_type = ''
zonky2 commented 2 years ago

fixed in MM 2.2