Closed (fixed)
Project:
Codes
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
6 Aug 2008 at 19:04 UTC
Updated:
8 Feb 2009 at 20:10 UTC
Jump to comment: Most recent file
Changing a code's default value changes the default value for all codes to that default.
To reproduce:
1. Create two codes, say code1 and code2.
2. Add a single option "x" to code1 and make it the default (default_single).
3. Add a single option "y" to code2 and make it the default (default_single).
4. Go back to the code1 options.
Expected result: "x" is still the default value for code1.
Actual result: code1 has no default value.
Behind the scenes: code1 default value has also been changed in the database to "y".
A patch is attached.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | codes_default_fix.patch | 545 bytes | Mark Rose |
| codes_default_fix.patch | 537 bytes | Mark Rose |
Comments
Comment #1
Mark Rose commentedSorry--original patch was bad. New patch attached.
Comment #2
pasquallewow, thanks
will commit soon
Comment #3
pasqualleComment #4
pasquallehttp://drupal.org/cvs?commit=166917
please note that I started to fully rewrite the module again, which should result in a much more cleaner functionality. The default value does not seems to be usable enough, so this column will be removed.. I hope I can commit the new version in the near future.