-
-
Notifications
You must be signed in to change notification settings - Fork 812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stripping linebreaks when removing attachment. #9764
Conversation
Stripping linebreaks when removing attachment.
|
Will check remove all. Didn't test it. |
Yes, that is correct.
It must have something to do with this fix. If there are several images in the post, they are removed from the post with ‘Remove All’, but only the first image is removed from the database and the attachment folder.
This error also occurs without this correction. If you use the ‘Insert All’ button, the ‘Set as Private’ button also changes to ‘In Message’. Summary: |
@rich20 Can you pls test with clean K6.3.6. I've just installed a clean K6.3.6 and buttons are wrong as well there. |
@Pinkeltje This error also occurs with a fresh installation. That's why I wrote that:
With this, I meant to say that this bug already existed before I tested your fix. |
Removed Insert private attachment as this doesn't work. Inserted private attachments are still visible for everyone. Buttons are now ok.
Removed insert private button as inserted private images were still visible to all users (and public). Button layout is now ok. |
Private attachments may not be inserted into the message. Now the ‘Set as Private’ button is completely missing and therefore it is not possible to set individual attachments as private. (The fact that the recipient cannot see private posts or private attachments is another bug). #9559 The problem in general is much bigger than it seems.
Example image: One image was inserted as private and one in the message. |
I see it. Didn't test that. The private issue is a real problem. |
Remove all working I think
Seems like remove-all works now with latest commit. |
Remove all works now. But individual attachments can now only be removed in edit mode. Test:
This only works if you save the post first and then edit it |
buttons display fixed and remove individual attachment now possible
@rich20 Can you test again please? |
|
Added buttons Is Private and all attachments private Requires adding language constants COM_KUNENA_ATTACHMENT_IS_PRIVATE and COM_KUNENA_ALL_ATTACHMENTS_ARE_PRIVATE added to transifex
Should be better now but requires adding language constants COM_KUNENA_ATTACHMENT_IS_PRIVATE and COM_KUNENA_ALL_ATTACHMENTS_ARE_PRIVATE added to transifex |
I then write a separate ticket for the language strings.
|
Do you mean one shouldn't be able to insert private attachments? |
An attachment that has been inserted directly into the message can no longer be Set as Private. Or it would have to be removed from the message, as attachments that have been inserted into the post are no longer private. Private attachments can only be uploaded and set as private. |
As for the new language strings:
|
|
hide insert when private is clicked and hide private when insert is clicked for individual attachment and all attachments
changed language constants to existing language constants for private buttons
All buttons should now be hidden as expected.
@rich20 I think it works ok now with latest commit. Found already existing language strings in language file (bit confusing as insert has "PRIVATE" in constant and Is private has "SECURED" in it. |
|
Edit messages with attachments |
Now it's almost perfect. There is just one more problem. If you remove a single attachment was not inserted in the post, the text is also removed from the editor. This happens both when creating a reply and when editing a post. Test: |
Thanks, everything is perfect now. I found another bug, but I don't know if it has anything to do with the upload.main.js. |
I think this is another bug as the changes only affect the buttons and actions. |
I also think that it has nothing to do with the buttons and will write an extra ticket.
|
See: https://www.kunena.org/forum/k-6-3-0-support/168633-fail-when-deleting-picture#232390
Works in my tests without problems now.