freakedout

Extra field not set on New Category

Extra field not set on New Category

When I create K2 Items with a New Category the Extra field is not set on that new Category. It does create the items and new category fine, but the new category has Associated Extra Field Group set to -None-.
It's worth noting that the Extra field data does get set at the item level, so if I manually select the Associated Extra Field Group on the Category, then I can see the Extra field data on the Item already there. Problem is, I dont want to have to go into every new Category manually.

I have seen another post similar here http://www.freakedout.de/One-upload-mul … ields.html . I am also getting the same message if I go into the Item-Extra fields tab:
          "Please select a category first to retrieve its related Extra Fields...".
Then, if I go back into the Category and set the extra fields group, I can go back into the Item and see the Extra Fields and its data.  That other post said it was a Chrome issue, but I have tried both Chrome and IE8, same problem.

I am using CU Pro. Tried Chrome and IE8.

Krr5
useravatar
Offline
13 Posts
Administrator has disabled public posting

Re: Extra field not set on New Category

Good point! This will be fixed in the next version (1.4.1).

To apply the fix yourself edit the file /administrator/components/com_focontentuploader/models/k2.php (line numbers as of version 1.3.17)

Replace line 223 with:

Code:

$row->catid = $helper->createK2Cat($catcol, $catAlias, $parentCatId, $catParams, $config['extraFieldsGroup']);

Edit the file /administrator/components/com_focontentuploader/helpers/helper.php

Replace line 658 with:

Code:

function createK2Cat( $name, $alias, $parent = 0, $catParams = false, $efgroup = 0 ){

Replace line 665 with:

Code:

"VALUES ('".$name."', '".$alias."', '', '".$parent."', '".$efgroup."', 1, 0, 1, '', '".$catParams."', 0, 'youtubevideoURL_cat=\n\n');";

Kind regards,
Pete

If you are satisfied with our products please write a review in the Joomla Extensions Directory!

Pete
Site admin
useravatar
Offline
762 Posts
User info in posts
Administrator has disabled public posting

Re: Extra field not set on New Category

Great, do you know approx timeframe of next release?  How can I be notified when it is released?
Thx.

Krr5
useravatar
Offline
13 Posts
Administrator has disabled public posting

Re: Extra field not set on New Category

v1.4.1 and v1.4.2 (for J1.6) should be ready for release within this week. I'll keep this post updated so that you'll get a notification email.

Kind regards,
Pete

If you are satisfied with our products please write a review in the Joomla Extensions Directory!

Pete
Site admin
useravatar
Offline
762 Posts
User info in posts
Administrator has disabled public posting

Re: Extra field not set on New Category

Hi,

FYI: We have just released the new version. Download here: http://www.freakedout.de/joomlaextensio … r-pro.html

Kind regards,
Pete

If you are satisfied with our products please write a review in the Joomla Extensions Directory!

Pete
Site admin
useravatar
Offline
762 Posts
User info in posts
Administrator has disabled public posting