Page 1 of 1

Phoca Gallery 4.0.0 Beta - Tags not displaying

Posted: 09 Apr 2013, 17:31
by scisteffan
Hello,

If I add tags to an image in Phoca Gallery 4.0.0 Beta, then click "Save", the tags disappear from the tags textbox. They are in the database, but do not display in the text box.

Also, the function, PhocaGalleryTag::storeTags, should return `true` if tags are stored successfully.

Re: Phoca Gallery 4.0.0 Beta - Tags not displaying

Posted: 11 Apr 2013, 16:42
by scisteffan
The tags do not display due to the use of loadResultArray for the custom fieldtype, PhocaGalleryTag:

Code: Select all

if ($select == 0) {
	$tags = $db->loadResultArray();
} else {
	$tags = $db->loadObjectList();
}
It's been removed in Joomla 3.

Re: Phoca Gallery 4.0.0 Beta - Tags not displaying

Posted: 11 Apr 2013, 16:48
by scisteffan
Just found this that may be really useful for you: http://docs.joomla.org/Potential_backwa ... tform_12.1
JDatabase::loadResultArray() has been removed. Use JDatabase::loadColumn() instead.

Re: Phoca Gallery 4.0.0 Beta - Tags not displaying

Posted: 15 Apr 2013, 23:28
by Jan
Hi, thank you for the info, I will fix it for the next version.

Jan

Re: Phoca Gallery 4.0.0 Beta - Tags not displaying

Posted: 09 May 2013, 17:58
by Jan
Hi, fixed in Phoca Gallery 4.0.0 RC