Index: trunk/extensions/SemanticForms/includes/SF_FormInputs.php |
— | — | @@ -777,7 +777,7 @@ |
778 | 778 | return array( '_str' ); |
779 | 779 | } |
780 | 780 | |
781 | | - public static function getAutocompletionTypeAndSource( $field_args ) { |
| 781 | + public static function getAutocompletionTypeAndSource( &$field_args ) { |
782 | 782 | if ( array_key_exists( 'values from property', $field_args ) ) { |
783 | 783 | $autocompletionSource = $field_args['values from property']; |
784 | 784 | $propValue = SMWPropertyValue::makeUserProperty( $autocompletionSource ); |
— | — | @@ -797,9 +797,9 @@ |
798 | 798 | $autocompletionSource = $field_args['values from namespace']; |
799 | 799 | } elseif ( array_key_exists( 'values from url', $field_args ) ) { |
800 | 800 | $autocompleteFieldType = 'external_url'; |
801 | | - $autocompletionSource = $field_args['values from namespace']; |
| 801 | + $autocompletionSource = $field_args['values from url']; |
802 | 802 | // Autocompletion from URL is always done remotely. |
803 | | - $field_args['remote autocompletion'] == true; |
| 803 | + $field_args['remote autocompletion'] = true; |
804 | 804 | } elseif ( array_key_exists( 'values', $field_args ) ) { |
805 | 805 | global $sfgFieldNum; |
806 | 806 | $autocompleteFieldType = 'values'; |