Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
221
Merge Requests
221
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
0143d50f
Commit
0143d50f
authored
Jan 19, 2013
by
webchick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#1893400
by swentel, dawehner: Fixed Autocomplete is busted.
parent
0b17f26a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
core/includes/form.inc
core/includes/form.inc
+4
-2
No files found.
core/includes/form.inc
View file @
0143d50f
...
...
@@ -4096,11 +4096,13 @@ function form_process_autocomplete($element, &$form_state) {
$element
[
'#attached'
][
'library'
][]
=
array
(
'system'
,
'drupal.autocomplete'
);
// Provide a hidden element for the JavaScript behavior to bind to. Since
// this element is for client-side functionality only, and we don't want to
// collect any input from it, use #theme='hidden' instead of #type='hidden'.
// collect any input from it, use #theme = 'input__hidden' and #pre_render =
// 'form_pre_render_hidden' instead of #type='hidden'.
// @todo Refactor autocomplete.js to accept Drupal.settings instead of
// requiring extraneous markup.
$element
[
'autocomplete'
]
=
array
(
'#theme'
=>
'hidden'
,
'#theme'
=>
'input__hidden'
,
'#pre_render'
=>
array
(
'form_pre_render_hidden'
),
'#attributes'
=>
array
(
'id'
=>
$element
[
'#id'
]
.
'-autocomplete'
,
'value'
=>
url
(
$element
[
'#autocomplete_path'
],
array
(
'absolute'
=>
TRUE
)),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment