Keyword

BUG K2 Attachments

  • jackson
  • jackson's Avatar Topic Author
  • Offline
  • New Member
More
5 months 5 days ago - 5 months 5 days ago #174227 by jackson
jackson created the topic: BUG K2 Attachments
I discovered an error while trying to save my attachments. The system was not saving the title attribute. I analyzed the code, and found a typo.

Where was: title_attibute
I changed to: title_attribute

administrator\components\com_k2\models\item.php

K2 2.10
Last edit: 5 months 5 days ago by jackson.

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

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
5 months 5 days ago #174228 by Fotis
Fotis replied the topic: BUG K2 Attachments
Good catch. Fixed in K2 v2.10.3 (dev) which you can download and use on your site from: getk2.org/downloads/?f=K2_Development_Release.zip

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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

  • jackson
  • jackson's Avatar Topic Author
  • Offline
  • New Member
More
5 months 5 days ago #174229 by jackson
jackson replied the topic: BUG K2 Attachments
Thanks!

There is another problem that I fixed on my own. If the user clicks add an attachment, and saves without selecting any files, an unexpected error occurs in the frontend. I created a function with JS so that the article cannot be saved if an attachment is empty. I think it would be interesting to implement this natively in K2.

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

  • Fotis
  • Fotis's Avatar
  • Away
  • Administrator
  • JoomlaWorks Support Team
More
5 months 5 days ago #174230 by Fotis
Fotis replied the topic: BUG K2 Attachments
Or we could just ignore empty values in attachments. Thanks for that as well. I'll note it down to test and patch accordingly.

If you use & love K2, please take a moment to add your review and rate it
at the Joomla Extensions Directory: extensions.joomla.org/extension/k2/


IMPORTANT: Please search the forum before posting a question!

JoomlaWorks Support Team Member

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


Powered by Kunena Forum