WordPress.org

Forums

Types
Post reference - child relationship (2 posts)

  1. marinamix76
    Member
    Posted 2 years ago #

    I found a bug trying to delete a relation between a post and a custom post type called "test".

    I tried to delete the relationship directly from the post edit page, using the box called "fields table".

    I selected the "Not Selected" corresponding to "This post belongs to"

    This is the result of the ajax request:
    "Passed wrong parameters"

    Ajax request:
    http://.../admin-ajax.php?action=wpcf_ajax&wpcf_action=pr-update-belongs&_wpnonce=025354199a&post_id=6

    Post params:
    action=wpcf_ajax
    wpcf_action=pr-update-belongs
    _wpnonce=025354199a
    post_id=6
    wpcf_pr_belongs[test]=0

    I think the bug is in the function wpcf_pr_admin_update_belongs line 963.

    #if (!empty($post_id) && !empty($post_type) && !empty($post_owner_id))

    In the case of "Not selected" the $post_owner_id is always empty!

    http://wordpress.org/extend/plugins/types/

  2. Srdjan
    Member
    Plugin Author

    Posted 2 years ago #

    Fix for deleting relationship is added and will be included in next release.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Types
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.