| @@ 1947-1953 (lines=7) @@ | ||
| 1944 | ) |
|
| 1945 | ); |
|
| 1946 | ||
| 1947 | if ( 'data' === $context ) { |
|
| 1948 | self::$field_data = array( |
|
| 1949 | 'field' => $name, |
|
| 1950 | 'id' => $options['id'], |
|
| 1951 | 'autocomplete' => false, |
|
| 1952 | ); |
|
| 1953 | } |
|
| 1954 | ||
| 1955 | $simple = true; |
|
| 1956 | ||
| @@ 2204-2210 (lines=7) @@ | ||
| 2201 | $autocomplete = false; |
|
| 2202 | } |
|
| 2203 | ||
| 2204 | if ( 'data' === $context ) { |
|
| 2205 | self::$field_data = array( |
|
| 2206 | 'field' => $name, |
|
| 2207 | 'id' => $options['id'], |
|
| 2208 | 'autocomplete' => $autocomplete, |
|
| 2209 | ); |
|
| 2210 | } |
|
| 2211 | ||
| 2212 | if ( $hierarchy && ! $autocomplete && ! empty( $results ) && $options['table_info']['object_hierarchical'] && ! empty( $options['table_info']['field_parent'] ) ) { |
|
| 2213 | $select_args = array( |
|