mhirdes / go_maps_ext

Google Maps Extension for TYPO3
MIT License
21 stars 31 forks source link

Add default for kml_url and styled_map_code #79

Closed jagodzinski closed 3 years ago

jagodzinski commented 3 years ago

Hello,

I get "SQL error: 'Field 'kml_url' doesn't have a default value'", when I save a new map. This can be resolved by adding default value for this two fields in the tca.

'kml_url' => [
            'exclude' => 1,
            'label' => 'LLL:EXT:go_maps_ext/Resources/Private/Language/locallang_db.xlf:tx_gomapsext_domain_model_map.kml_url',
            'config' => [
                'type' => 'input',
                'size' => 30,
                'eval' => 'trim',
                'max' => 500,
                'default' => ''
            ],
        ],
.
.
.
'styled_map_code' => [
            'exclude' => 1,
            'label' => 'LLL:EXT:go_maps_ext/Resources/Private/Language/locallang_db.xlf:tx_gomapsext_domain_model_map.styled_map_code',
            'config' => [
                'type' => 'text',
                'cols' => 40,
                'rows' => 15,
                'eval' => 'trim',
                'default' => ''
            ],
        ],

Could you please add this two lines?

Regards, Jessica

mhirdes commented 3 years ago

ok, done

jagodzinski commented 3 years ago

Thank you!