Keyword

The content of K2 Extra Fields is deleted after frontend editing

  • Greg
  • Greg's Avatar Topic Author
  • Offline
  • Junior Member
More
7 years 1 week ago - 7 years 1 week ago #167821 by Greg
Hi I a have critical problem with the K2 extra fields and the Joomla v 3.8.7 and K2 v 2.8.0 .

I have the 'Extra fields' tab on edit form disabled for frontend editing, however when I edit a K2 item from the frontend then the whole content of the K2 extra fields is deleted. I noticed that this is happening only after the last update to Joomla 3.8.7.

Notice that when the 'Extra fields' tab on edit form is enabled for frontend editing then the content of the K2 extra fields remains after frontend editing on a K2 item.

Thank you in advance for any assistance!
Last edit: 7 years 1 week ago by Greg.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 1 week ago #167834 by Krikor Boghossian
Hello Greg,

Can you backup and install the 2.8.1 DEV version?

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

  • Greg
  • Greg's Avatar Topic Author
  • Offline
  • Junior Member
More
7 years 1 week ago #167842 by Greg
Thank you for the response! I tried with no luck the current K2 version 2.8.1 available from Github (please provide me with the right link in case I have downloaded it from the wrong source). I suppose that an additional check is needed (if content exists or not in k2 item extra fields) when the frontend editing is disabled for extra fields, so as to prohibit to write empty values back to db.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 1 week ago #167868 by Krikor Boghossian
Are you by any chances using overrides for the itemform.php file?

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

  • Greg
  • Greg's Avatar Topic Author
  • Offline
  • Junior Member
More
7 years 1 week ago #167876 by Greg
Hi Krikor thak you for the interest!
I am using a template override for K2, however in itemform.php I have not changed something, it contains only the following:
require_once(JPATH_SITE.'/administrator/components/com_k2/views/item/tmpl/default.php');

Also before posting I have tried with no luck the following:

1) I removed the override so as to check if it is responsible for the problem.
2) I tried a fresh installation of last Joomla with both the K2 2.8.0 and the dev version from Github.
3) I checked if the issue might be caused from the editor, however the result is the same with both the built in editors and JCE.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
7 years 1 day ago #167934 by Krikor Boghossian
We are working on a fix, you can bookmark our repo in order to stay up to date.
github.com/getk2/k2

Also, thank you for reporting this. Feedback is invaluable to us

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

  • Greg
  • Greg's Avatar Topic Author
  • Offline
  • Junior Member
More
7 years 1 day ago #167942 by Greg

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
6 years 11 months ago #168006 by Krikor Boghossian
You 're welcome Greg :)

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

  • Greg
  • Greg's Avatar Topic Author
  • Offline
  • Junior Member
More
6 years 8 months ago - 6 years 8 months ago #169041 by Greg
Hi, is there any progress to this problem? I have already tried all the updates of the project but with no luck.
Last edit: 6 years 8 months ago by Greg.

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

More
6 years 8 months ago #169045 by JoomlaWorks
Just to clarify, extra fields are disabled for editing from the K2 settings right? If so, how can you edit them in the frontend and save?

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

  • Greg
  • Greg's Avatar Topic Author
  • Offline
  • Junior Member
More
6 years 8 months ago - 6 years 8 months ago #169050 by Greg
Hi Fotis, thank you for your interest. To be more clear, I have some K2 items with content in their extra fields and the Front End editing only for the extra fields is disabled. When I open a K2 item for Front End editing and I make and save some changes (e.g. in the introtext or fulltext), then ONLY the content of the extra fields is deleted.

I assume that the Front End editing of the extra fields is not being checked during the update and thus null values are passed for the extra fields of the K2 items.

The title of the topic may be misleading, so to help others it may be changed to "The content of K2 Extra Fields is deleted after frontend editing of K2 item".

Thank you!
Last edit: 6 years 8 months ago by Greg.

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

More
6 years 8 months ago #169051 by JoomlaWorks
Yeah, it's probably a bug then. I'm noting it down to fix (hopefully) by v2.9.0 which is out this week. If I can't make it for 2.9.0, then it's 2.9.1 in the next 2 months as I'm shifting releases to be available sooner now (not once a year as in the past).

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

More
6 years 8 months ago #169052 by JoomlaWorks
It's a bug already. When extra fields are hidden (and I assume not just extra fields) the data is nulled in the database for all the hidden elements. Please avoid using frontend editing until I resolve the matter. Sorry for the confusion.

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

  • Greg
  • Greg's Avatar Topic Author
  • Offline
  • Junior Member
More
6 years 8 months ago #169056 by Greg
Thank you very much for your efforts! I am looking forward for the fix.

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

More
6 years 8 months ago #169058 by JoomlaWorks
Actually, it was a lot easier to fix than I originally thought.

Just install the dev version github.com/getk2/k2/archive/master.zip and you'll be set.

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

  • Greg
  • Greg's Avatar Topic Author
  • Offline
  • Junior Member
More
6 years 8 months ago #169069 by Greg
Thank you very much for the support!

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

More
6 years 8 months ago #169072 by JoomlaWorks
You're welcome.

If you like K2, please take a moment and add your review & rating at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/ (it literally takes a couple of minutes)

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


Powered by Kunena Forum