Skip to content

Commit

Permalink
Merge pull request sheadawson#44 from arillo-ch/master
Browse files Browse the repository at this point in the history
php7.2 support
  • Loading branch information
sheadawson authored Sep 30, 2019
2 parents fb969e1 + 34571ac commit 41b090e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.phpintel/
4 changes: 2 additions & 2 deletions code/extensions/QuickAddNewExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function updateAttributes(&$attributes) {
// Ignore if not using QuickAddNew
return;
}
// NOTE(Jake): This below comment will be necessary if
// NOTE(Jake): This below comment will be necessary if
// $this->owner->setForm($form); is needed in 'doAddNew'
/*$form = $this->owner->getForm();
if ($this->owner === $form->getController()) {
Expand Down Expand Up @@ -180,7 +180,7 @@ public function AddNewFormHTML()
**/
public function doAddNew($data, $form)
{
$obj = Object::create($this->addNewClass);
$obj = SS_Object::create($this->addNewClass);
if (!$obj->canCreate()) {
return Security::permissionFailure(Controller::curr(), "You don't have permission to create this object");
}
Expand Down

0 comments on commit 41b090e

Please sign in to comment.