V3.2.2 $this->category->userfolder missing

Phoca Gallery - image gallery extension
schultz-it-solutions
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 29 Nov 2012, 18:15

V3.2.2 $this->category->userfolder missing

Post by schultz-it-solutions »

Hello Jan,

In an individual template override for the category view (default.php in site views/category/tmpl) i was referencing the "userfolder" attribute of the category object ("$this->category->userfolder"). This worked fine until lately (probably the latest update to 3.2.2). Now this attribute is no longer available in the object.

Is this just an omission and will the attribute return to be available (in a next version), or shall I try to find another solution for my template override?

Best regards
Ruediger Schultz
schultz-it-solutions
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 29 Nov 2012, 18:15

Re: V3.2.2 $this->category->userfolder missing

Post by schultz-it-solutions »

it seems like the
SITE / MODEL / CATEGORY.php :
function _loadCategory() {
if (empty($this->_category)){
//$query = 'SELECT c.*,' .
$query = 'SELECT c.id, c.title, c.alias, c.description, c.published, c.approved, c.parent_id, c.deleteuserid, c.accessuserid, c.uploaduserid, c.access, c.metakey, c.metadesc,' .

does not select all attributes anymore. Do I have a problem when I modify this and add "userfolder" as additonal element?

Best regards
Ruediger Schultz
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: V3.2.2 $this->category->userfolder missing

Post by Jan »

Hi, I have made some SQL query optimization, so it is possible that such column is missing now.

Just add: c.userfolder to the sql - I will add this to next version.

Thank you for the info.
Jan
If you find Phoca extensions useful, please support the project
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49149
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: V3.2.2 $this->category->userfolder missing

Post by Jan »

Fixed in 3.2.3
Jan
If you find Phoca extensions useful, please support the project
Post Reply