Keyword

BUG K2 Attachments

  • jackson
  • jackson's Avatar Topic Author
  • Offline
  • New Member
More
4 years 3 months ago - 4 years 3 months ago #174227 by jackson
BUG K2 Attachments was created by jackson
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: 4 years 3 months ago by jackson.

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

More
4 years 3 months ago #174228 by JoomlaWorks
Replied by JoomlaWorks on 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

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • jackson
  • jackson's Avatar Topic Author
  • Offline
  • New Member
More
4 years 3 months ago #174229 by jackson
Replied by jackson on 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.

More
4 years 3 months ago #174230 by JoomlaWorks
Replied by JoomlaWorks on 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.

Fotis / JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum