Skip to content

Commit

Permalink
REFACTOR various class names and method call names
Browse files Browse the repository at this point in the history
  • Loading branch information
muskie9 committed Jul 31, 2016
1 parent 9971852 commit 83571a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/Location.php
Expand Up @@ -127,7 +127,7 @@ public function getCoords()
*/
public function fieldLabels($includerelations = true)
{
$labels = parent::fieldLabels();
$labels = parent::fieldLabels($includerelations);

$labels['Title'] = 'Name';
$labels['Suburb'] = 'City';
Expand Down Expand Up @@ -159,7 +159,7 @@ public function getCMSFields()
EmailField::create('Email', 'Email'),
TextField::create('Website')
->setAttribute('placeholder', 'http://'),
DropDownField::create('CategoryID', 'Category', LocationCategory::get()->map('ID', 'Title'))
DropdownField::create('CategoryID', 'Category', LocationCategory::get()->map('ID', 'Title'))
->setEmptyString('-- select --'),
CheckboxField::create('ShowInLocator', 'Show in results')
->setDescription('Location will be included in results list'),
Expand Down

0 comments on commit 83571a7

Please sign in to comment.