Closed (fixed)
Project:
Rules
Version:
6.x-1.x-dev
Component:
Forms Support
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Mar 2010 at 11:07 UTC
Updated:
25 Mar 2010 at 20:20 UTC
Jump to comment: Most recent file
Comments
Comment #1
nodecode commentedI'm coming from this thread: http://drupal.org/node/557906#comment-2679228http://drupal.org/node/5579...
and i have the same problem.
Comment #2
henrijs.seso commentedI think naming of this action is little off, but it works as supposed. It probably should be renamed from 'disable from element' to 'unset (or don't show and save) from element'. There is another action to hide element without unsetting, use that.
Comment #3
nodecode commentedI am already hiding the element at this point because disabling the element has been BROKEN in the current 6.x-1.x-dev version. The 6.x-1.1 Rules release properly disabled the field WITHOUT deleting the information in it. I've worked in many programming languages and disabling an element SHOULD NOT also erase the data inside it. So no, it's not working as it should.
See for yourself, install the 6.x-1.1 version and follow the steps in the first post here. The whole point of "disabling" a field rather than "hiding" it is that you can still see the data in the field but you cannot change it.
Comment #4
klausiAs far as I can see this is a severe form API bug. The browser does not submit a value and the existing default value should be kept, which is not the case.
I talked to fago and we decided to remove the support for disabling form elements from Rules Forms until this bug is fixed or we can come up with a non-hackish workaround. Otherwise we easily break people's data, which we do not want to in the upcoming Rules 1.2 release.
Here is a patch that removes Disabling fields and will be committed soon.
Comment #5
YK85 commentedsubscribin - it would be very nice to have an action to "disable and unset form element" as well as "disable form element" Thank you
Comment #6
klausiPatch committed.
@yaz085: "disable and unset form element" does not seem to be a useful action to me (you can use (un-)set value of a cck field instead). "disable form element" does not work as expected, so we remove it for now. Patches against the form API or other ideas are welcome.
Comment #7
klausiComment #8
nodecode commented@klausi > do you know at what point this was broken? I ask because I was using "disable field" in 6.x-1.1 and it worked fine most of the time unless it ran into the issue from this thread: http://drupal.org/node/557906#comment-2679228http://drupal.org/node/557906
I'm just curious as to where one might begin to look for a possible solution.