From 34571acfa3f92e473f4b8f9321156f03cd62fd04 Mon Sep 17 00:00:00 2001 From: Bumbus Date: Fri, 27 Sep 2019 10:03:43 +0200 Subject: [PATCH] php7.2 support --- .gitignore | 1 + code/extensions/QuickAddNewExtension.php | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a500b06 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.phpintel/ diff --git a/code/extensions/QuickAddNewExtension.php b/code/extensions/QuickAddNewExtension.php index 4aad35a..5867af0 100644 --- a/code/extensions/QuickAddNewExtension.php +++ b/code/extensions/QuickAddNewExtension.php @@ -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()) { @@ -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"); }