Page 1 of 1

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

Posted: 29 Nov 2012, 18:25
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

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

Posted: 30 Nov 2012, 14:00
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

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

Posted: 08 Dec 2012, 23:06
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

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

Posted: 30 Dec 2012, 18:39
by Jan
Fixed in 3.2.3
Jan