=== Problem:

If a module defines several exportables, Features UI will show repeated items in the UI, which is confusing.

=== Example:

If workflow module defines workflow and workflow_type_map as two exportables, Features UI will show "Workflow" (module name) twice in the Edit Components dropdown

=== Cause:

Current features.admin.inc used module name as the component label in the components dropdown.

=== Solution:

Features UI should display "modulename: exportable name" instead of just "modulename" in the dropdown. That is what CTools Bulk Export UI does (see attached image) so such solution would make the two UIs coherent.

=== Code

Please see the attached minor patch which takes care of the problem.

Comments

irakli’s picture

Status: Active » Needs review
StatusFileSize
new972 bytes
irakli’s picture

Status: Needs review » Reviewed & tested by the community
pobster’s picture

Status: Reviewed & tested by the community » Needs review

You can't mark your own patch as reviewed by the community... That's pointless...

I'm moving this back to 'needs review' and then maybe perhaps someone will review it.

Pobster

irakli’s picture

Status: Needs review » Reviewed & tested by the community

Status was moved to R&TC based on a conversation with Jeff Miccolis, in IRC. Assuming he's one of the maintainers, I take the liberty to believe that there was a reason for it.

pobster’s picture

Well seeing as it's been over a month, wouldn't you prefer that the community actually tested this? I mean, don't get me wrong here - I really don't care... But if you and the maintainer have already decided this patch is fine then why not move the status to "patch (to be ported)"? This patch evidently *hasn't* been tested by the community (you know what community means right?) therefore why mark it as such?

LOGIC != YOU

Pobster

hefox’s picture

Version: 6.x-1.0 » 7.x-1.x-dev
Status: Reviewed & tested by the community » Patch (to be ported)

It looks like the code is exactly the same in d7 verision, but haven't tested yet.

D6 commit http://drupalcode.org/project/features.git/commit/c2064b3

Thanks

hefox’s picture

Status: Patch (to be ported) » Needs review
StatusFileSize
new752 bytes

Patch applies fine to 7.x with -p0, so here's one without

febbraro’s picture

Assigned: Unassigned » febbraro
febbraro’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.