Closed (fixed)
Project:
Rules
Version:
7.x-2.x-dev
Component:
Rules Engine
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Feb 2011 at 09:19 UTC
Updated:
23 May 2011 at 14:21 UTC
How can i create a simple "text" in rules AND keeping that field it in the exportable? It seems to me, as soon as you use 'default value', it does not store nor export that field anymore. I must say this is for 'option lists'
Now i do a very dirty hack for this. The only type that worked for me (stored the field) is list and that is not what i needed. I hide the field with css there.
A hidden type would be good as well.
Comments
Comment #1
fagoWhy should it export the 'default value' if that's part of the action info nevertheless? If another value is provided, it will be exported.
Comment #2
fagoComment #3
makononov commentedI think I'm seeing a symptom of this. I have a rule set up with a Userpoints action, which defines a default value for a boolean field ("display"). After exporting, and then importing the rule, triggering the event results in Rules complaining about a missing value:
Please let me know if you need any further info for debugging. Thanks!
Comment #4
makononov commentedComment #5
fago>I think I'm seeing a symptom of this. I have a rule set up with a Userpoints action, which defines a default value for a boolean field ("display").
I've fixed the export logic to always export values for non-optional parameters.