Download & Extend

Rules are exported by Features with their numeric IDs instead of machine names

Project:Entity API
Version:7.x-1.x-dev
Component:Code - misc
Category:bug report
Priority:critical
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Since the updates to the Entity and Rules modules related to #1027908: entity_load() should return entities keyed by ID, not name, Rules are exported by Features with their numeric IDs instead of their machine names.

Comments

#1

sub

#2

Status:active» needs review

At first sight attached patches (one for Entity, one for Rules) seem to fix the problem. The calls to entity_load() have been replaced with entity_load_multiple_by_name().

AttachmentSizeStatusTest resultOperations
rules_features_machine_names.patch692 bytesIdleFAILED: [[SimpleTest]]: [MySQL] Unable to apply patch rules_features_machine_names.patch. This may be a -p0 (old style) patch, which is no longer supported by the testbots.View details
entity_features_machine_names.patch1.57 KBIdleFAILED: [[SimpleTest]]: [MySQL] Unable to apply patch entity_features_machine_names.patch. This may be a -p0 (old style) patch, which is no longer supported by the testbots.View details

#3

I'm also experiencing the same problem, but for Search API exports (which uses the same export feature from Entity API).

The patch in #2 solves the problem. Thanks, Cyberwolf!

#4

Priority:normal» critical
Status:needs review» reviewed & tested by the community

Ouch, good catch Cyberwolf. Patches look good and work.

#5

Status:reviewed & tested by the community» fixed

Thanks, committed to entity api & rules.

#6

Status:fixed» closed (fixed)

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