Support » Plugin: Meta Box - WordPress Custom Fields Framework » Dynamically loading options not working after update to 5.2

  • Resolved baskerville221b

    (@baskerville221b)


    Hi,

    I am using metabox advanced select and taxonomy advanced fields in combination with select2 ajax to dynamically load options.

    Here is an example field definition that works fine with version 5.1.2 (since I create the definition programmatically, this is the print_r output of the array):

    [0] => Array
      (
        [id] => bvmb_authors
        [name] => Authors
        [type] => taxonomy_advanced
        [multiple] => 1
        [query_args] => Array
          (
            [include] => 1 // This reduces the normal query to items already selected
          )
        [sort_clone] => 1
        [clone_as_multiple] => 1
        [taxonomy] => person
        [js_options] => Array
          (
            [minimumInputLength] => 3
            [allowClear] => 1
            [placeholder] => Select Authors
            [tags] => 1
            [tokenSeparators] => Array
              (
                [0] => ,
              )
            [ajax] => Array
              (
                [url] => /wp-admin/admin-ajax.php?action=bv_select_advanced_taxonomy_lookup&taxonomy=person
                [dataType] => json
                [type] => get
                [delay] => 250
              )
          )
      )

    After updating to 5.2, the options are not loaded anymore.

    I see in the Changelog that some kind of ajax support was added. I couldn’t find out exactly what was changed, but I assume it may have a bearing on my problem.

    Any help or suggestion is greatly appreciated. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.