Skip to content

Commit

Permalink
Merge pull request sheadawson#37 from MichaelJJames/patch-1
Browse files Browse the repository at this point in the history
Added a default value
  • Loading branch information
sheadawson committed Nov 27, 2015
2 parents ece0c2b + abc4eba commit 995a1ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/dataobjects/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function getCMSFields(){
$viewersOptionsSource["Anyone"] = _t('SiteTree.ACCESSANYONE', "Anyone");
$viewersOptionsSource["LoggedInUsers"] = _t('SiteTree.ACCESSLOGGEDIN', "Logged-in users");
$viewersOptionsSource["OnlyTheseUsers"] = _t('SiteTree.ACCESSONLYTHESE', "Only these people (choose from list)");
$viewersOptionsField->setSource($viewersOptionsSource);
$viewersOptionsField->setSource($viewersOptionsSource)->setValue("Anyone");

$fields->addFieldsToTab('Root.ViewerGroups', array(
$viewersOptionsField,
Expand Down Expand Up @@ -369,4 +369,4 @@ public function getController() {
return $this->controller;
}

}
}

0 comments on commit 995a1ac

Please sign in to comment.