delahaye / dlh_googlemaps

Google Maps Extension für Contao
20 stars 26 forks source link

dlh_googlemap_zoom has invalid default value #58

Closed fritzmg closed 8 years ago

fritzmg commented 8 years ago

In the DCA of tl_content, the SQL definition for the field dlh_googlemap_zoom is defined as follows:

"int(10) unsigned NOT NULL default '0'"

It's an integer field that cannot be NULL and defaults to zero, if no value is given during an INSERT operation.

However, the default value in the DCA is defined as follows:

'default' => ''

This will lead to a MySQL error, if the MySQL server runs in a strict mode, since you cannot insert an empty string into such a field then.

The default value should be defined as follows:

'default' => 0
delahaye commented 8 years ago

You're right, thanks. I'll set it to an integer value with the next version.