Loading...
 
Skip to main content

After upgrade to 2.2, Last Files module is empty.

Status
Closed
Subject
After upgrade to 2.2, Last Files module is empty.
Version
2.x
Category
  • Error
  • Regression
Feature
File Gallery (elFinder or standard UI)
Modules
Submitted by
jhamell
Lastmod by
Marc Laporte
Rating
(0)
Description
After upgrading from 1.9.11 to 2.2, the Last Files module is showing up empty.
Solution

Tracking the problem back, the SQL request itself was actually trying to isolate only entries in which galleryId == -1. My understanding is that a value of -1 means all galleries. To fix it, I modify a single line in lib/tikilib.php:

function get_files
Line: 2124

A conditional checks :
elseif ( $galleryId >= -1 && ! $recursive )

And I believe that it *should* be checking for $galleryId > -1. I made the correction, and Last Files is now displaying correctly, and I haven't yet noticed other problems this may have raised.


This works fine in 7.x. Feel free to reopen if you can reproduce in a current release.

Importance
2
Priority
10
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
2283
Created
Tuesday 03 February, 2009 21:07:13 UTC
by Unknown
LastModif
Wednesday 08 June, 2011 21:48:09 UTC


Show PHP error messages