I am using several features packages. If package name begins with the letter < "T" this package don't showing in admin/structure/features (tab don't showing).
I am change 451 line at features.admin.inc
change ksort($form) to asort($form) and it work correct.
Is it correct solution?
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | features-1010618-8.patch | 684 bytes | quade |
| #3 | features-1010618 -1.patch | 850 bytes | skilip |
Comments
Comment #1
kevin p davison commentedasort() worked for me, and my feature starts with an "S" but does contain a "T": SKTA.
Comment #2
Bußmeyer commentedmy feature starts with an "i". When I switch to asort everything works fine.
Comment #3
skilip commentedThe problem here lies with the 'packages' form element which is the 'vertical_tab' wrapper of all features. If ksort($form) places the form element after the feature element, the vertical_tab rendering will be broken. The attached patch solves this.
Comment #4
himerus commentedThis patch wasn't working, but the solution in it did...
+1
Comment #6
avpaderno@himerus: Do you mean you get an error message when you tried to apply the patch provided here? If it so, then the status should be changed to needs work.
Comment #7
himerus commentedYes, apologies, I couldn't get the patch to apply cleanly.
The contents were simple enough though I just applied it manually, and it did work. Don't have time at the moment to re-roll.
Comment #8
quade commentedI have rerolled the patch from #3 so that it'll apply cleanly for others. Thanks for the original solution, skilip.
Comment #9
ptrl commentedPatch in comment #8 solves my problem with features beginning with the letter S not showing up.
Comment #10
shawn_smiley commentedI can also confirm that the patch in #8 resolves the issue with features not showing up in the list.
Comment #11
rasskull commentedAwesome, the patch in #8 does indeed resolve the issue for me as well
Comment #12
jide commentedWorks for me too, setting as RTBC.
Comment #13
goldlilys commentedThanks changing ksort to asort worked for me.
Comment #14
boobaa#8 works for me, too.
Comment #15
irakli commentedI believe the latest code in HEAD for D7 has code that is [different but] equivalent of the code in the patch. Tested the HEAD with the description of the problem and the problem could not be reproduced, so closing the issue.
Thank you.
Comment #16
emarchak commentedI'm on the latest 7.x-dev release, and none of these patches can be applied, nor can I manually edit admin.inc to solve this issue. Halp?
Comment #17
mpotter commentedClosing this for lack of activity. Please re-open this issue if you can reproduce it in the latest version.
Comment #18
emarchak commentedI would like to add that it's been five years, and I just ran into this problem again on features 7.x-2.7 There's an XKCD for this.
I found that there was an entry in the system table for my missing feature, but deleting that entry doesn't correct it. Reinstalling the entire site from scratch works sporadically.