From d90c1a2c23f995fc5140cf593aa9a2af40be573b Mon Sep 17 00:00:00 2001 From: Thomas Keller Date: Fri, 20 Jul 2012 15:03:57 +0200 Subject: [PATCH] $prj wasn't defined, so use the project reference that the page has instead (fixes issue 808) --- NEWS.mdtext | 3 +++ src/IDF/Wiki/PageRevision.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/NEWS.mdtext b/NEWS.mdtext index dccc790..9575c7f 100644 --- a/NEWS.mdtext +++ b/NEWS.mdtext @@ -29,6 +29,9 @@ or newer to run properly! been copied. This has been changed insofar that now all properties except the project's URL, logo and individual SCM settings are copied by default. +- Wiki pages couldn't be properly saved with E_NOTICE enabled because + of a syntax error (fixes issue 808) + - Indefero now shows detected copies in git changesets. # InDefero 1.3.2 - Wed May 09 20:05 2012 UTC diff --git a/src/IDF/Wiki/PageRevision.php b/src/IDF/Wiki/PageRevision.php index 12e9695..40924e7 100644 --- a/src/IDF/Wiki/PageRevision.php +++ b/src/IDF/Wiki/PageRevision.php @@ -167,7 +167,7 @@ class IDF_Wiki_PageRevision extends Pluf_Model if (count($matches) > 1 && count($matches[1]) > 0) { foreach ($matches[1] as $resourceName) { $sql = new Pluf_SQL('project=%s AND title=%s', - array($prj->id, $resourceName)); + array($page->get_project()->id, $resourceName)); $resources = Pluf::factory('IDF_Wiki_Resource')->getList(array('filter'=>$sql->gen())); if ($resources->count() == 0) continue;