Fullscreen
Loading...
 
Skip to main content

File Gallery Handler Parent Gallery

Status
Closed
Subject
File Gallery Handler Parent Gallery
Version
11.x
Category
  • Error
Resolution status
New
Submitted by
Greg Wheat
Lastmod by
Nelson Ko
Rating
(0)
Description

The code for the file gallery handler has a default parent gallery of -1. This causes the features not to work. It should probably be set to 1.

Here's the specific code in lib\core\Tiki\Profile\InstallHander\FileGallery.php

$defaults = array(
'owner' => 'admin',
'public' => 'n',
'galleryId' => null,
'parent' => -1,
'visible' => 'n', // fgal default is y so set here so it gets set only if specified in flags[]
);

Solution

Thanks Greg.

Changed to 1 in r48085. I think in the old days it used to be -1 but it caused all sorts of problems so it was changed.

Importance
5
Easy to solve?
10 easy
Priority
50
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
4790
Created
Sunday 06 October, 2013 02:45:44 UTC
by Greg Wheat
LastModif
Sunday 20 October, 2013 02:09:59 UTC


Show PHP error messages