Closed (works as designed)
Project:
Entity Translation
Version:
7.x-1.x-dev
Component:
Base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Jun 2012 at 12:59 UTC
Updated:
8 Jan 2013 at 13:48 UTC
I used the following rule with Rules 2.1 and Entity API rc1; it worked great. However, when I updated Entity API to rc3, the "Set a data value" action no longer works (the rules debug log shows the action being evaluated, but the value is not changed in the database). Reverting to Entity API rc1 allows the rule to work again. (I also tested with rc2; rc2 has the same problem-- the rule doesn't work.)
Here is the debug log:
0 ms Rule Profile Pictures- Set on User Flag fires.
4.272 ms Evaluating the action data_set. [edit]
6.154 ms Saved flagged_node:author of type user.
{ "rules_profile_pics_set_on_user_flag" : {
"LABEL" : "Profile Pictures- Set on User Flag",
"PLUGIN" : "reaction rule",
"TAGS" : [ "approval" ],
"REQUIRES" : [ "rules", "flag" ],
"ON" : [ "flag_flagged_profile_picture" ],
"IF" : [
{ "node_is_of_type" : {
"node" : [ "flagged-node" ],
"type" : { "value" : { "profile_picture" : "profile_picture" } }
}
}
],
"DO" : [
{ "data_set" : {
"data" : [ "flagged-node:author:field-acc-profile-picture" ],
"value" : [ "flagged-node:field-acc-uploaded-picture" ]
}
}
]
}
}
Comments
Comment #0.0
ptmkenny commentedadded more detail about exactly what doesn't work
Comment #0.1
ptmkenny commentedupdated debugging info
Comment #1
ptmkenny commentedPossibly related to Action "Set a data value" is not working for date field.
Making this a rules issue since I was able to recreate the rule so that it is triggered every time a picture node is saved (no reference to flag) and it still doesn't work with entity-rc3 or rc2; reverting to rc1 allows it to work again.
EDIT: Sorry, I was unable to confirm this on a vanilla D7 install. I will debug more to find the cause of this issue.
Comment #2
ptmkenny commentedI have confirmed this bug by re-creating the basic configuration (content type "picture" with image field, user profile image field, rule that "sets a data value" from the image field of content type picture to the user profile image field upon node save) on a clean install of D7 with the following modules:
Entity rc3
Entity Translation alpha2
Rules 2.1
If I revert entity from rc3 to rc1, "set a data value" works again.
Also, if I keep rc3 but disable entity translation, "set a data value" works.
Comment #3
plachPlease, try the latest dev.
Comment #4
ptmkenny commentedSorry for the late response. I tested with the latest versions of the modules:
Entity rc3 / dev (2012-Jul-03)
Entity Translation alpha2 / dev (2012-Aug-15)
Rules 2.2
I still have the exact same problem. To remedy the situation, I can revert to entity rc1 or disable Entity Translation, but I can't use "Set a data value" in Rules without doing one or the other.
Comment #5
plachPlease, confirm this still exists in the latest dev.
Comment #6
ptmkenny commentedUnfortunately, I am still able to reproduce the bug in the manner described in #2 with the following modules:
Entity rc3 / dev (2012-Oct-24)
Entity Translation dev (2012-Dec-11)
Rules 2.2
Comment #7
ptmkenny commentedComment #8
ptmkenny commentedComment #9
plachRetitling
Comment #10
ptmkenny commentedUsing the release versions of the following modules, the error no longer occurs, so I'm marking this fixed:
Entity translation 1.0-beta2
Entity 1.0
Rules 2.2
Comment #11
plachThanks for reporting.
Comment #11.0
plachactually, it works even for simple rules, so I will simplify my post