@@ -200,6 +200,9 @@ |
||
200 | 200 | return $fieldNames[$name]; |
201 | 201 | } |
202 | 202 | |
203 | + /** |
|
204 | + * @param string $name |
|
205 | + */ |
|
203 | 206 | protected function recordFieldData($name) { |
204 | 207 | $fieldName = $this->childFieldName($name); |
205 | 208 | return $this->data->$fieldName ?: $this->getDefaultValue($name); |
@@ -179,8 +179,8 @@ |
||
179 | 179 | $gmapsParams['key'] = $key; |
180 | 180 | } |
181 | 181 | $this->extend('updateGoogleMapsParams', $gmapsParams); |
182 | - Requirements::css('betterbrief/silverstripe-googlemapfield: client/css/GoogleMapField.css'); |
|
183 | - Requirements::javascript('betterbrief/silverstripe-googlemapfield: client/js/GoogleMapField.js'); |
|
182 | + Requirements::css('betterbrief/silverstripe-googlemapfield: client/css/GoogleMapField.css'); |
|
183 | + Requirements::javascript('betterbrief/silverstripe-googlemapfield: client/js/GoogleMapField.js'); |
|
184 | 184 | Requirements::javascript('//maps.googleapis.com/maps/api/js?' . http_build_query($gmapsParams)); |
185 | 185 | } |
186 | 186 |