Bulk edit messes up _detail table post_status value

This topic contains 2 replies, has 2 voices, and was last updated by  Rick Vandenberg 8 years, 9 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #49458

    Rick Vandenberg
    Expired Member
    Post count: 2

    Hi – I’m not fluent enough in the WP internals to know where try debugging this one 🙂

    If you go to the ‘Places’ screen, and select multiple places on the listing and bulk-edit them – for example, to add a category – after you save, the *_detail table for places has “-1” in the post_status, instead of ‘publish’. This of course causes 404 errors for each of the place pages.

    In the WordPress core, it checks for a “-1” coming from the form, meaning that the user has elected to not update the status. It undefines the post_status variables so they don’t get changed in this case, but somewhere along the line, I think GeoDirectory isn’t doing the same when it cross-updates the _detail records.

    Cheers,
    Rick

    #49459

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    this is a known bug. Not really a bug though, it is more of an incomplete part.

    GeoDirectory saves most of the listings data in a custom table too. The Quick Edit or Bulk edit UI are not capable of doing this (yet?) and they are only saving in wp_postmeta, this specifically for Tags and Categories.

    I believe that for now we should disable the quick edit and bulk edit for listings, or fix them so that they can be used. 1 or the other.

    I’ve flagged this for Stiofan to see if he wants to add something.

    Thank you for the heads up.

    #49469

    Rick Vandenberg
    Expired Member
    Post count: 2

    I don’t think disabling it would be a great idea, but perhaps making it clear that the operator has to set the status to ‘publish’ rather than leave it as “no change” – that fixes things.

Viewing 3 posts - 1 through 3 (of 3 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket