Keyword

FrontEnd editing: can't delete attachment

  • fjesteban
  • fjesteban's Avatar Topic Author
  • Offline
  • New Member
More
14 years 9 months ago #78058 by fjesteban
Hi everybody:
I can't delete attachments in front end item editor: if you use the "Delete" button nothing happens.

This button works fine in back end item editor with the same user.

I've checked the code and looks fine, but probably I'm missing something. 

I've tried a hack: to change the URL of the buttom from "index.php?option=com_k2&..." to "administrator/index.php?option=..." In this case, the form seems to work (the attachment information disappears when you click the "Delete" button), but when you save the item, the info reappears and the file is actually there.

I've checked this behaviour on 2.1 and 2.2 versions

Thanks in advance

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

  • fjesteban
  • fjesteban's Avatar Topic Author
  • Offline
  • New Member
More
14 years 9 months ago #78059 by fjesteban
Replied by fjesteban on topic FrontEnd editing: can't delete attachment
More info: It's an issue with built in Joomla SEF engine. If you disable it, you recover this functionality.

I'll try to adjust route exceptions to solve the problem.

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

More
14 years 9 months ago #78060 by Lefteris
Replied by Lefteris on topic FrontEnd editing: can't delete attachment
Hi. You are totally right. The bug has been fixed. No need for rewriting for this link. Thanks for reporting this issue to us.

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

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

  • fjesteban
  • fjesteban's Avatar Topic Author
  • Offline
  • New Member
More
14 years 9 months ago #78061 by fjesteban
Replied by fjesteban on topic FrontEnd editing: can't delete attachment
Thank you very much for your quick answer. Is the fixed version available anywere?

Lefteris Kavadas said:Hi. You are totally right. The bug has been fixed. No need for rewriting for this link. Thanks for reporting this issue to us.

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

More
14 years 9 months ago #78062 by Buddy Q
Replied by Buddy Q on topic FrontEnd editing: can't delete attachment
My client just called me with the same issue. Where can we pick up the fix??

Buddy

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

  • fjesteban
  • fjesteban's Avatar Topic Author
  • Offline
  • New Member
More
14 years 9 months ago #78063 by fjesteban
Replied by fjesteban on topic FrontEnd editing: can't delete attachment
Hi Buddy Q:

I finally fixed it by myself:

- Edit the file /components/com_k2/views/item/tmpl/form.php
- In the line 648 (version 2.2), change the delete button's hyperlink to look like this:
href="administrator/../index.php?option=com_k2&view=item&task=deleteAttachment&id=%3C?php%20echo%20$attachment-"

doing so, the link is not treated by SEF engine and it works.

Hope this help.
Regards from Spain






Buddy Q said:My client just called me with the same issue. Where can we pick up the fix?? Buddy

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

More
14 years 9 months ago #78064 by Buddy Q
Replied by Buddy Q on topic FrontEnd editing: can't delete attachment
Awesome! Thanks a bunch!!

Francisco José Esteban Risueño said:Hi Buddy Q:
I finally fixed it by myself:

- Edit the file /components/com_k2/views/item/tmpl/form.php
- In the line 648 (version 2.2), change the delete button's hyperlink to look like this:
href="administrator/../index.php?option=com_k2&view=item&task=deleteAttachment&id=%3C?php%20echo%20$attachment-"

doing so, the link is not treated by SEF engine and it works.

Hope this help.
Regards from Spain






Buddy Q said:My client just called me with the same issue. Where can we pick up the fix?? Buddy

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

More
14 years 9 months ago #78065 by Aptcode.com
Replied by Aptcode.com on topic FrontEnd editing: can't delete attachment

quote
- Edit the file /components/com_k2/views/item/tmpl/form.php
- In the line 648 (version 2.2), change the delete button's hyperlink to look like this:
href="administrator/../index.php?option=com_k2&view=item&task=deleteAttachment&id=%3C?php%20echo%20$attachment-"
end quote

Could you please give the full line before and after editing?


David.

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

  • fjesteban
  • fjesteban's Avatar Topic Author
  • Offline
  • New Member
More
14 years 9 months ago #78066 by fjesteban
Replied by fjesteban on topic FrontEnd editing: can't delete attachment
I tried to do it, but it seems that this forum doesn't admit <code> tags.

Anyway, the hyperlink was originally like this:

href="index.php?option=com_k2&view=item&task=deleteAttachment&id=%3C?php%20echo%20$attachment-"

David McIntosh said:
----- quote -----<br/> - Edit the file /components/com_k2/views/item/tmpl/form.php - In the line 648 (version 2.2), change the delete button's hyperlink to look like this: href="administrator/../index.php?option=com_k2&amp;view=item&amp;task=deleteAttachment&amp;id=%3C?php%20echo%20$attachment-"
------ end quote -----

Could you please give the full line before and after editing?


David.

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

More
14 years 9 months ago #78067 by Aptcode.com
Replied by Aptcode.com on topic FrontEnd editing: can't delete attachment
Thanks Francisco.


I made the edit but I came across a very strange problem - the "Home" page of the site started to refuse to display any content - just a totally blank page. - Other pages were OK.
Hopefully an "official" fix to the attachment delete problem will be made soon.

David.

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


Powered by Kunena Forum