[Resolved] Delete relationship no longer working

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 10 replies, has 4 voices.

Last updated by joostv-5 7 months, 1 week ago.

Assigned support staff: Christian Cox.

Author
Posts
#1396849

I WANT CHRISTIAN COX TO HELP ME - I WILL WAIT!! - why did you take away the option!?
Hi,
Something very weird just started happening.
In views my delete relationship links stopped working! when you hover the mouse over them it gives (in the bottom left of browser) the link of the page with "#".
This is TERRIBLE - it used to work!
Also - deleting an intermediary post is NOT deleting the relationship. Isn't it supposed to? Isn't that the way the "delete relationship" link is supposed to work??
Here's what the code looks like (did it change? I don't remember it looking like this)
[cred-delete-relationship role_items='$fromViews' relationship='track-client' redirect='self']Delete Pitch[/cred-delete-relationship]

This is very bad for me as clients are supposed to be able to delete relationships from the front ONLY.

Thanks,
Scott.

#1396865

OK - I figured out why relationships where still showing in some views - it was because the intermediary post was "trashed" rather then "deleted"
However - it still remains that the delete relationship links are not working anymore.
Thank you.

#1397191

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

I will ask Christian to take care of this ticket and pass to him. He will in touch with you once he will be back to work.

#1399131

Christian Cox
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

Can I see how this is set up in wp-admin? I would like to try to reproduce it in my own environment so I can confirm the workflow. Please provide login credentials in the private reply fields here and let me know where I can see the "delete relationship" links on the front-end of the site.

#1400793

Christian Cox
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

Okay I have seen issues with non-admins and the Delete Relationship link in the past. If you don't want to manage post types with Access until this other problem is resolved, one way to give another role the ability to delete a post relationship from the front-end like this is to grant the "manage_options" capability in Access. That should resolve the problem, assuming that doesn't open up too many options for the Editor role in wp-admin.

Let me know if this is a satisfactory solution for now or if we need to look for a more targeted capability.

#1400991

Hi Christian,

granting "manage_options" to editor is not an option. I think what might work instead of a delete relationship link, use an edit post link and from there have a delete post link. I'll let you know if this works.

#1401019

Christian Cox
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

I'll stand by for your update, thank you.

#1401219

deleting post from the intermediary post works fine for editor - I'll use that instead of delete relationship link.
May I ask another question? let me know if I need to open a new ticket...
Concerning an intermediary of mine - the date field, when selecting today's date put's it twice when viewing the results in it's child (not sure about when viewing from adult as I have no need for that)
So - "Track-Client" in a many to many, the intermediary has a date field, when selecting the current day's date it put's it twice when viewed in "client". It only seems to be a problem with the intermediary. In the back end of WP, when viewing "all items" of intermediary the date field is empty for those ones with double dates.
If I go back and re-do the date (selecting today's date) it then works fine.
Thanks!

New threads created by Christian Cox and linked to this one are listed below:

https://toolset.com/forums/topic/date-field-in-intermediary-post-shows-twice-on-front-end/

#1402285

Christian Cox
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-04:00)

Okay I've split that question into a separate ticket so we can discuss in more detail.

#1402305

Thanks! I'll close this...

#1454359

Hi,

I am having a similar issue. For the security of my website I am very hesitant to provide the "manage_options" capability to users. I need to have a delete button directly in the post, so using an edit link is not really an option. Is there an alternative solution available?

Thanks!

New threads created by Christian Cox and linked to this one are listed below:

https://toolset.com/forums/topic/how-to-delete-related-post/