From fcd42544ab52f38c57d960a73c8103d20966c0e6 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Wed, 12 Dec 2007 22:46:13 +0000 Subject: [PATCH] wakeless: #1419 Removed e_notice level error on DataObject::write() git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@46722 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/DataObject.php | 1 + 1 file changed, 1 insertion(+) diff --git a/core/model/DataObject.php b/core/model/DataObject.php index 4ad36d799..8347c4953 100644 --- a/core/model/DataObject.php +++ b/core/model/DataObject.php @@ -475,6 +475,7 @@ class DataObject extends Controller implements DataObjectInterface { public function write($showDebug = false, $forceInsert = false, $forceWrite = false) { $firstWrite = false; $this->brokenOnWrite = true; + $isNewRecord = false; $this->onBeforeWrite(); if($this->brokenOnWrite) { user_error("$this->class has a broken onBeforeWrite() function. Make sure that you call parent::onBeforeWrite().", E_USER_ERROR);