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

fago’s picture

Component: Rules Core » Rules Engine

Why should it export the 'default value' if that's part of the action info nevertheless? If another value is provided, it will be exported.

fago’s picture

Status: Active » Postponed (maintainer needs more info)
makononov’s picture

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"). After exporting, and then importing the rule, triggering the event results in Rules complaining about a missing value:

116.347 ms Required parameter display is missing.
116.355 ms Unable to execute action userpoints_action_grant_points.

Please let me know if you need any further info for debugging. Thanks!

makononov’s picture

Status: Postponed (maintainer needs more info) » Active
fago’s picture

Status: Active » Fixed

>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.

Status: Fixed » Closed (fixed)

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