| @@ 1773-1779 (lines=7) @@ | ||
| 1770 | ) |
|
| 1771 | ); |
|
| 1772 | ||
| 1773 | if ( 'data' === $context ) { |
|
| 1774 | self::$field_data = array( |
|
| 1775 | 'field' => $name, |
|
| 1776 | 'id' => $options['id'], |
|
| 1777 | 'autocomplete' => false, |
|
| 1778 | ); |
|
| 1779 | } |
|
| 1780 | ||
| 1781 | $simple = true; |
|
| 1782 | ||
| @@ 2036-2042 (lines=7) @@ | ||
| 2033 | $autocomplete = false; |
|
| 2034 | } |
|
| 2035 | ||
| 2036 | if ( 'data' === $context ) { |
|
| 2037 | self::$field_data = array( |
|
| 2038 | 'field' => $name, |
|
| 2039 | 'id' => $options['id'], |
|
| 2040 | 'autocomplete' => $autocomplete, |
|
| 2041 | ); |
|
| 2042 | } |
|
| 2043 | ||
| 2044 | if ( $hierarchy && ! $autocomplete && ! empty( $results ) && $options['table_info']['object_hierarchical'] && ! empty( $options['table_info']['field_parent'] ) ) { |
|
| 2045 | $select_args = array( |
|