$prj wasn't defined, so use the project reference that the page has instead (fixes issue 808)
This commit is contained in:
parent
22c1f92b2b
commit
d90c1a2c23
@ -29,6 +29,9 @@ or newer to run properly!
|
|||||||
been copied. This has been changed insofar that now all properties except
|
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.
|
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 now shows detected copies in git changesets.
|
||||||
|
|
||||||
# InDefero 1.3.2 - Wed May 09 20:05 2012 UTC
|
# InDefero 1.3.2 - Wed May 09 20:05 2012 UTC
|
||||||
|
@ -167,7 +167,7 @@ class IDF_Wiki_PageRevision extends Pluf_Model
|
|||||||
if (count($matches) > 1 && count($matches[1]) > 0) {
|
if (count($matches) > 1 && count($matches[1]) > 0) {
|
||||||
foreach ($matches[1] as $resourceName) {
|
foreach ($matches[1] as $resourceName) {
|
||||||
$sql = new Pluf_SQL('project=%s AND title=%s',
|
$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()));
|
$resources = Pluf::factory('IDF_Wiki_Resource')->getList(array('filter'=>$sql->gen()));
|
||||||
if ($resources->count() == 0)
|
if ($resources->count() == 0)
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user