Bug in Gallery Extended 2.0.2: Not updating Category Stats
Posted: 15 October 2007 01:14 PM   [ Ignore ]
Newbie
Rank
Total Posts:  2
Joined  2007-09-16

It currently doesn’t update the table ‘exp_gallery_categories’ with the totals.
Change line 1770 of mod.gallery_extended.php from:

$this->_update_cat_total$this->cat_id );

to:

$this->_update_cat_total$val['cat_id');

as the class variable $cat_id isn’t ever being set to the category id.

Profile
 
 
Posted: 16 October 2007 02:49 AM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  2
Joined  2007-09-16

BTW, same with the delete function.
Around line 1390, add:
$cat_id = $query->row[’cat_id’];
and around line 1462 (inside the success condition):
$this->_update_cat_total($cat_id);

Profile
 
 
Posted: 12 November 2007 06:53 AM   [ Ignore ]   [ # 2 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  2320
Joined  2006-10-18

Ripemedia,

I believe this category bug is the same thing noted in this thread:
http://www.solspace.com/forums/viewthread/301/

Mitchell has fixed that bug, however, I’m not sure if he has yet released it publicly. smile

I’m not sure about the Delete function though, but I’d imagine it could be related too.

 Signature 
Profile
 
 
Posted: 12 November 2007 10:00 AM   [ Ignore ]   [ # 3 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  702
Joined  2004-03-30

Ripe,

Please email me and I’ll get you rigged up with an updated GX2 file. mitchell at solspace.com

mk

 Signature 

Mitchell Kimbrough

Profile