WordPress.org

Ready to get started?Download WordPress

Forums

amr users
[resolved] remove display col. no longer includes field only if blank (2 posts)

  1. elurie
    Member
    Posted 11 months ago #

    As long as column dnponline is displayed, search criteria works correctly. remove field, and search criteria no longer works.
    ▪ Temporarily choose the criteria field for display by adding a display column to it. In this case the dnponline
    ▪ Update the list settings.Role will now be one of the columns displayed AND magically now the other specifications are available in the list configuration.
    ▪ Scroll to the right till you see the “include” and “exclude” fields.
    ▪ Enter your criteria:
    ▪ include only if blank, returns 10 users which is correct.
    ▪ Update the list settings, rebuild cache, it works.
    ▪ remove display col.
    ▪ Update list settings, rebuild cache.
    ▪ It does not work. Returns 12 users. No longer includes field only if blank.

    http://wordpress.org/plugins/amr-users/

  2. anmari
    Member
    Plugin Author

    Posted 11 months ago #

    You're right. Thanks for finding!

    Found the bug, fixed locally, have a couple of other things to test and test remote servers, so hopefully next version up tomorrow.

    If you cannot wait, try edit yourself.
    There were two instances in files of includeifblank that should be includeonlyifblank

    IN ameta-building.php
    Line 130: foreach (array('selected','excludeifblank','includeifblank' ,'sortby' ) as $v) {

    and

    ameta-list.php
    Line 54: (isset ($l['includeifblank'][$field])) or

Reply

You must log in to post.

About this Plugin

About this Topic