Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
javascript
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
19 Jan 2013 at 20:18 UTC
Updated:
29 Jul 2014 at 21:47 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
swentel commentedBeen seeing this as well - you should also get 'Theme hook hidden not found' in your watchdog - I *think* this is related to #1812724: Consolidate all form element templates and add theme_hook_suggestons which removed theme_hidden().
Comment #2
swentel commentedSo yeah, this fixes it ..
But there's a big todo in form_process_autocomplete(), not sure what todo with that
Comment #3
dawehnerI had the same fix on my system, though what about this?
It simulates what '#type' => 'hidden' does?
Comment #4
dawehnerAdapted the documentation at the top.
Comment #5
swentel commentedWorks for me.
Comment #6
webchickSo of the two, #2 definitely looks better to me, but it fails tests. #4 though does what theme_hidden() used to be doing before it was removed, so it's the more proper fix. But we might want to look into that later, because I'm not sure anyone in the universe (other than the fabulous dawehner, of course :D) would know to set both + '#theme' => 'input__hidden', and + '#pre_render' => array('form_pre_render_hidden'),
Committed and pushed to 8.x. YAY! Thanks. :D
Comment #7
sunLet's use a regular element and the regular built-in facility to ignore user input and the value of a form element.
Comment #8
dawehneroh cool!
Comment #9
webchickMuch more betterer, thanks. :)
Committed and pushed to 8.x.
Comment #10
nod_was broken. no id on input broke JS.
Comment #11
sunOh. I'm sorry. Yes, #type hidden does not get an HTML ID by default, since no one usually needs to target those fields... so yeah, it needs to be in 'attributes'.
Comment #12
aspilicious commentedYeah previous patch maybe needed a manual review ;)
It works now with the latest patch.
Comment #13
webchickD'oh. :P
Committed and pushed to 8.x. Hopefully this is done for good now? :)