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;