[fixed] Templates is not saved in category

More
12 years 8 months ago - 12 years 8 months ago #24548 by gruz
[img


I didn't look for the solution yet.

J2.5
FC - 2.0 - Rev 1612 (since 17-00 30.12.2012)
Last edit: 12 years 8 months ago by gruz.

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #24555 by ggppdk
This is due to the new restructured category edit form

Get the fixed files here in revision r1255:
code.google.com/p/flexicontent/s ... ail?r=1255

I actually, i had known, but it was tricky to implement in J2.5, and then after committing, i forgot it.

The difficult has to do with the way that parameters are being saved and then applied to the form fields when the edit form is displayed.

Thanks for pointing out, as this an important bug


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #24557 by gruz
Give me 20 minutes to check

J2.5
FC - 2.0 - Rev 1612 (since 17-00 30.12.2012)

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #24562 by gruz
When I edit a category I get:
[img
Code:
Category layout Notice: Undefined index: clayout in /var/www/oscar/data/www/test.oscargo.ru/administrator/components/com_flexicontent/views/category/tmpl/default.php on line 214

But line 214 in the file is
Code:
<?php endforeach; ?>

Once I save the category, I get everything ok. But it should work from the start without any warning.

J2.5
FC - 2.0 - Rev 1612 (since 17-00 30.12.2012)

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #24564 by ggppdk
Right, this notice will occur in all newly created categories and in categories saved with the buggy revision r1254 and before since the Parameter value does not exist in the DB.

I 'll clear the notice,
line 214:
$field->set('value', $this->attribs[$field->fieldname]);
will be:
$field->set('value', @$this->attribs[$field->fieldname]);

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
12 years 8 months ago #24565 by gruz
Though I'm not sure if suppressing errors in the code is a good way, I'm really thankful to you!

J2.5
FC - 2.0 - Rev 1612 (since 17-00 30.12.2012)

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.393 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline