Skip to content

Commit

Permalink
Merge pull request #73 from stevie-mayhew/bugfix/record
Browse files Browse the repository at this point in the history
BUGFIX: incorrect reference to non-existant method getRecord
  • Loading branch information
unclecheese committed Nov 22, 2014
2 parents a164a0f + 3d24f28 commit 595dffd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/extensions/GridFieldBetterButtonsItemRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function addnew(SS_HTTPRequest $r) {
* @param Form The ItemEditForm object
*/
public function updateItemEditForm($form) {
if ($this->getRecord()->stat('better_buttons_enabled') !== true) {
if ($this->owner->record->stat('better_buttons_enabled') !== true) {
return false;
}
Requirements::css(BETTER_BUTTONS_DIR.'/css/gridfield_betterbuttons.css');
Expand Down

0 comments on commit 595dffd

Please sign in to comment.