content_field_instance_read returns an array of fields, not a single field
Fixing it changed a 301 sec revert to 37 (...now to figure out why all content is ending up as overriden >.O :P).
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | features.908618-4.patch | 739 bytes | Grayside |
| correctly_check_instance.patch | 731 bytes | hefox |
Comments
Comment #1
hefox commentedComment #2
Grayside commentedIs the overridden bit a bug in this patch? Shouldn't it be Needs Work then?
Comment #3
hefox commentedNay, the overridden was purely from me being a bit too experimental at times and mentioned as a lolz (cause lots of things overridden + this bug == Slow, slow, slow, features rebuilds).
Comment #4
Grayside commentedChasing HEAD. Now to test.
Comment #5
Grayside commentedTested and works.
Here are some incoherent instructions on how to test that this patch works as advertised:
Set widget_active=0 in content_node_field_instance for a field. Test that content_clear_type_cache(TRUE); is only fired in content_features_rebuild($module) once, plus once per inactive field. Do this by dropping a strategic dpm() to let you know the name of the field getting a the cache clear. And throw features_revert(array('module_name' => array('content'))); in hook_init() somewhere.
Comment #6
hefox commentedCommit http://drupalcode.org/project/features.git/commit/c98e1ec
Comment #7
febbraro commentedhefox, do we think this is something that needs to be looked at in D7?
Comment #8
hefox commentedI looked into it briefly, but from what I saw, it didn't look to be since fields API is different (when commiting bug fixes ford6 I check the code in d7 to see if it needs to be upported).