File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 18
18
"FullscreenInteractive\\ SilverStripe\\ " : " src/"
19
19
}
20
20
},
21
+ "extra" : {
22
+ "expose" : [
23
+ " client"
24
+ ]
25
+ },
21
26
"scripts" : {
22
27
"lint" : " phpcs src/ tests/" ,
23
28
"lint-clean" : " phpcbf src/ tests/"
Original file line number Diff line number Diff line change @@ -189,10 +189,10 @@ public function FieldHolder($properties = array())
189
189
{
190
190
Requirements::javascript ('//api.addressfinder.io/assets/v3/widget.js ' );
191
191
192
- if (Controller::curr ()->hasMethod ('ShowSwitchView ' )) {
192
+ if (Controller::curr ()->hasMethod ('ShowSwitchView ' )) {
193
193
// leftandmain check. If admin then use entwine.
194
194
} else {
195
- if (Config::inst ()->get (AddressFinderField::class, 'include_address_finder_js ' )) {
195
+ if (Config::inst ()->get (AddressFinderField::class, 'include_address_finder_js ' )) {
196
196
Requirements::javascript ('fullscreeninteractive/silverstripe-addressfinder:client/javascript/addressfinder.js ' );
197
197
}
198
198
}
@@ -390,7 +390,7 @@ public function validate($validator)
390
390
return false ;
391
391
}
392
392
393
- if ($ this ->requireLatLngManual ) {
393
+ if ($ this ->requireLatLngManual ) {
394
394
$ lat = $ fields ->dataFieldByName ("{$ name }[Latitude] " );
395
395
396
396
if (!$ lat ->Value ()) {
You can’t perform that action at this time.
0 commit comments