Support » Plugin: Custom Field Template » [Plugin: Custom Field Template] Massive select box not working after 3.1 upgrade

  • BrenFM

    (@brenfm)


    Hi all!

    Not sure if anyone else has experienced this, but would love some feedback anyways.

    Have a select field to pick a user from the core.

    [Exhibitor User]
    label = Selecting a user here allows them to edit this listing
    code = 0
    type = select

    It uses the following:

    global $wpdb;
    $items = $wpdb->get_results("SELECT ID, display_name
    FROM wp_users
    order by display_name ASC");
    $i = 0;
    foreach ($items as $item) {
    	$values[$i] = $item->ID;
    	$valueLabel[$i] = $item->display_name;
    	$i++;
    }

    This currently returns 87 records. Works well in Chrome, IE9, FF4, Safari – but in IE7 & IE8 (client uses these and I’m loathe to tell them they have to change) it throws a javascript error complaining that a script is taking too long to repsond and IE could become unstable. Using IETester I can sorta replicate this in that the select doesn’t pop out at all. I can click on the label for the field and type to find the results in the select box so it’s not TOTALLY broken. Also, smaller select boxes (less options) work perfectly.

    Oddly – if I try to use the select box BEFORE the page finishes loading OR if I switch off Javascript it also works fine, so 3.1 must be throwing some odd JS in the bottom of the admin panel somewhere.

    Anyone having similar issues?

  • The topic ‘[Plugin: Custom Field Template] Massive select box not working after 3.1 upgrade’ is closed to new replies.