User unable to delete person from Custom List
complete
Amrayu78
Steps to reproduce:
- Create a Custom List for people as a Contributor
- Try to delete a person, Kubota Taro
- When I clicked the delete button - a prompt does come out asking for removing the title - I clicked "OK", but nothing happened at all - the person that I wanted to delete, stayed in the list.
User is doing this from Chrome mobile browser (Android device).
Screenshots attached.
Amrayu78
complete
Amrayu78
Hi Max Romanchenko: Can you help check and fix? Thanks.
Max Romanchenko
Amrayu78 This is the same problem with user editing rights and the delete shortcode from the Toolset
Instead of this code
<div class=“delete-rel-link”>[cred-delete-relationship class=“none text-decoration-none” related_item_one=“@[wpv-post-type].parent” related_item_two="@[wpv-post-type]. child“ relationship=‘[wpv-post-type]’ redirect=‘self’]<i class=”fas fa-trash“></i> Delete[/cred-delete-relationship]<span class=”trigger-delete“ data-confirm-text=”Are you sure you want to remove this title?” style=“cursor:pointer”><i class=“fas fa-trash”></i> Delete</span>
</div>
I created a custom delete form.
<div class="delete-rel-link">[cred_form form='list-disconnect-posts' post='[wpv-post-id item="$current_page"]']</div>
The downside is that it is difficult to maintain, since we need to create a separate delete form for each post type. We also need to set up access rights for this form and redirects after deletion...
I increasingly think that we need to somehow improve everything and create it from scratch. Support for this is becoming more and more problematic and I do not want you to spend your budget on new features while the old ones are working with bugs...
Please check. For now, this bug is "fixed"
Amrayu78
Max Romanchenko Thnaks, I’ll ask the user to check.
Amrayu78
Max Romanchenko: This is fixed! Closing out.