I have a rule set up so that on account creation, the account is given a role, the role is given an expiration time (via the Role Expire module), and one of the profile fields is given a certain value. Granting the new user a role and an expire time works perfectly, but setting the profile field isn't working. In case it matters, the profile field is a drop-down.

I'm not sure if it matters, but when I click "modify profile fields" under "DO", it brings up the list of fields. I click the checkbox next to the field I want to change, set it appropriately, and click "save" but when I go back to view the rule, the checkbox is un-checked. What am I doing wrong here?

CommentFileSizeAuthor
#14 print.jpg14.55 KBdanimatielo

Comments

fago’s picture

Status: Active » Postponed (maintainer needs more info)

Which "modify profile fields" action are you using? Rules doesn't provide this action.

a.bond’s picture

I'm not sure, it might be provided by Views Bulk Operations. How would I check if that's where the rule comes from?

fago’s picture

Title: Rule: Modify profile fields » Modify profile fields action troubles
Project: Rules » Views Bulk Operations (VBO)
Version: 6.x-1.2 » 6.x-1.x-dev
Component: Rules Engine » Actions
Category: support » bug

Indeed. There is no way to check that via the UI, but the module lists that at the project page.

Moving to the vbo queue.

infojunkie’s picture

Status: Postponed (maintainer needs more info) » Fixed

Fixed in the latest dev. Please check (12 hours from now) and let me know.

infojunkie’s picture

Title: Modify profile fields action troubles » Profile fields action does not remember checkbox settings
a.bond’s picture

infojunkie, when you say "latest dev", do you mean the latest 6.x-1.x or the latest 6.x-3.x? Or both?

infojunkie’s picture

I meant 6.x-1.x-dev.

a.bond’s picture

Status: Fixed » Needs work

The checkbox stays checked now, but the rule still isn't executing.

infojunkie’s picture

Can you plz verify that the same action works fine when invoked from a regular VBO (e.g. admin/user/user2) ?

a.bond’s picture

Absolutely, I use the "modify profile fields" action daily with no issues. It just doesn't work when I try to have it executed by a rule.

infojunkie’s picture

OK thanks for the confirmation. I'll check it out in this setting.

infojunkie’s picture

Status: Needs work » Postponed (maintainer needs more info)

I am unable to reproduce this. Here's what I did:

* Create profile field of type List with 3 values "One", "Two", "Three"
* Create a new rule with event = User account has been created
* Select action = Modify profile fields, with User = "registered user"
* Checked list field and selected value "One"
* Created new user from admin/user/user/create
* Looked at new user account page: List = "One"

What is different in your case? Can you reproduce this scenario above?

a.bond’s picture

  • I'm using a profile field of type "list selection" (the drop-down list) with two values, "Trial" and "Subscription".
  • I'm using a rule with event = "User account has been created."
  • Under "Do", I have three actions, "Add user role", "Add expire time to role" (via role expire, and "Modify profile fields". The first two execute properly.
  • For the "Modify profile fields" action, the category "Trial/Subscription" is checked and "Trial" is selected.
  • When I create a new account (via /user/register, like a new user would), the "Trial/Subscription" field is still at the default, "--". If I create the new account via admin/user/user/create, the field is set properly.
danimatielo’s picture

Version: 6.x-1.x-dev » 6.x-3.x-dev
StatusFileSize
new14.55 KB

Hello, I am also having the problem with Modify profile fields and rules: under DO, I select the checkbox and an option, but when I edit the Rule again, the configuration has been lost. I am using version 6.x-3.x-dev and the profile fields are checkboxes. I attached a printscreen of the problem.

infojunkie’s picture

Version: 6.x-3.x-dev » 6.x-1.x-dev
Status: Postponed (maintainer needs more info) » Active
a.bond’s picture

So, what's going on with this? It's really frustrating. Has there been any movement in the six weeks since this issue was made "active" again?

infojunkie’s picture

Re #16: Sorry to hear about your frustration. Since you're a programmer, you might be interested to trace the problem and submit a patch. That's what I do when I encounter problems in modules that I use.

infojunkie’s picture

Status: Active » Fixed

Can't reproduce this with latest dev. So marking as fixed.

Status: Fixed » Closed (fixed)

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