Fix errors when rendering fieldgroups in 'advanced' contexts (RSS, search...).
[project/cck.git] / CHANGELOG.txt
3CCK 6.2-dev
6- Fix errors when rendering fieldgroups in 'advanced' contexts (RSS, search...).
d103b6d2 9CCK 6.2-rc7
d103b6d2 12Note:
f6616262 13- There has been a few files moved around since RC6, so be sure to *delete* the previous contents
d48f2c6d 14of your cck/ folder before uploading the new files, in order to avoid duplicates.
15- The admin forms (field creation, field edition...) have been renamed to comply with usual form
16naming conventions. Modules and custom code that rely on those form ids through hook_form_alter() or
17drupal_execute() will need to be updated.
d103b6d2 18- The final 6.x-2.0 release is currently targetted for the second half of September.
f6616262 19
20Main bugs fixed since RC6:
21- Content Copy: Fix multiple bugs when importing/exporting content types :
22exporting field definition can alter the actual field's settings
23'this post cannot be referenced' error when exporting nodereference fields
24no export of default values
25- #198502 D5 upgrade path: Prevent field module upgrades from running before content.module upgrades.
26- #293698 Views integration: make 'show n values starting from m' actually work.
27- #292872 Data loss issue: fields and field data deleted for content types defined by disabled modules.
28IMPORTANT: Since disabling all contrib modules is a recommended step prior to upgrading a D5 site to D6,
29it is highly advised that D5 sites using CCK are updated to CCK 5.x-1.8 (which contains the same fix)
30before starting the D6 upgrade process.
32Main new features since RC6:
33- Updated to latest Views 2 API. Views integration requires Views 6.x-2.x-dev newer than Sep 3, 2008.
34- #295556 by CPyle - Userreference: let referenceable users be defined by a View.
35- Userreference: Add 'Radios / checkboxes' widget.
36- #294797 New $FIELD_NAME_rendered and $GROUP_NAME_rendered variables for node.tpl.php.
37- Nodereference: Allow specific node templates for nodes displayed as values of a noderef field.
38- #301736 by nedjo - Nodereference: Multilingual support; if available, propose translations of referenced nodes when creating a new translation.
39- #196468 by Nedjo - Content copy: Provide a link to automatically import a file into Content Copy.
d48f2c6d 40
d103b6d2 41Other changes:
c96559a4 42- Avoid undefined index error in Content Copy when fieldgroup is enabled but there are no groups.
358cc3c0 43- #296077 Add delta to formatter information.
44- #128038 Alter _content_admin_form() to provide the raw widget default values as well as the default value widget so programmed forms will have those values available. You can't tell when you construct the form if it's a programmed form or not, so we will always have to create the default value widget, but we don't always have to use it. This will also get the default values into the Content Copy export in a way that Content Copy import can pick them up, and alter validation to unset the default value widget and skip the default value widget processing if it's a programmed form. Since we are now provided the actual default value (not just the default value widget) in the export, we can safely pick it up in the import.
45- #128038 Use content_field_instance_collapse() to send form values in the Content Copy export to be sure we get the original field values for checkboxes instead of the true/false values we will get otherwise.
0056e35d 46- #300108 Add group value back to field settings form so it will appear in the Content Copy export.
4d58d4fb 47- #283985 Force Content Copy export to use current field values to avoid storing mangled data back to field.
53a93046 48- #298440 by Moonshine and KarenS: move form permission checking to content_field_form() and don't call hook_widget for users w/out permission.
adbcbef4 49- #294726 by profix898 and yched: _content_type_info() does not reset on content type changes.
466881a2 50- #293273 Nodereference: update 'referenceable types' when type name changes.
6a05942a 51- #295914 Fix additional problems when installing CCK in install profiles.
26a8d234 52- #295664 Views integration: let summaries display 'allowed values' aliases if any.
6fd78125 53- Views integration: prevent empty links for the 'no value' items in summaries.
65af8518 54- #296748 Text: Fix PHP warning when $node->build_mode not set.
8ea6acd1 55- #297915 Fix content_copy.
0433e3d4 56- #298674 Content copy doesn't import all type properties.
8ea6acd1 57- #293471 Remove fieldgroup selection on field settings form.
6550d84b 58- Userref / Noderef : Add a 'none' choice for non-required, single fields with 'Radios / checkboxes' widget.
bea5ae87 59- #298823 Views integration: do not step into views_* namespace.
63eb190a 60- #299698 Userreference: autocompletion query when typed string is '0'.
73478af8 61- #300236 Fix inconsistent schema for 'locked' column between install and updates.
bef5d50c 62- Do not display 'label' settings on 'advanced' subtab of 'Display fields'.
35b5a08d 63- #266205 by sun: add zebra classes for field items.
99e73f7d 64- #299870 Incorrect handling of custom weight for 'Language' node form element.
65- Fieldgroups: display options were not supported for 'advanced' contexts (RSS, search index...).
66- Fieldgroups: do not display group label when building the search index.
5beccff4 67- Fieldgroups: Remove tinyint (127) limitation on group weights.
2801e556 68- #301984 by joetsuihk - Views Integration: do not display empty divs on empty fields.
8ed6a207 69- Views integration : prevent possible 'invalid argument for foreach' warnings with 'group multiple values'.
f57e5b9c 70- Fix tests to work with simpletest 2.x.
79b3b8c6 71- #296301 by Moonshine - Fieldgroups: fix call_user_func_array() error on add / configure / remove pages.
9abd8969 72- #118364 Number (decimal): fix unneeded information message when using comma as a separator ("150,00 was changed to 150.00").
f75d8dd7 73- Fieldgroup: New groups are not styled on node view until 'display fields' form is submitted.
e7e792a6 74- #303664 Views integration: update to new Views API for handler / plugins.
8395d7d0 75- #303475 by wrunt - Optionwidgets : unchecked 'single on/off checkbox' stores 0/'0' instead of the 'off' value.
e7e792a6 76- #304450 Userreference - fix broken autocomplete for 'simple' mode / fix broken 'advanced - views' mode after Views API changes.
bd37960b 77- Fix PHP warnings on node display for hidden fields inside fieldgroups.
0031faf4 78- #305048 by asimmonds: fix incorrect link on 'start update' page when updates were aborted.
c714a08e 79- Content copy: Fix broken group export as a result of #296301.
2c175854 80- #304828 Clean up function names in
6ff2552c 81- #285557 Added 'img' to the list of allowed tags in fields descriptions.
0031faf4 82- Content copy: wrong page title after export code has been generated.
5c761692 83- Fieldgroup: fix broken node preview.
3747b662 84
3a85e378 85CCK 6.2.rc6
3a85e378 88Hotfix release for:
c5ce919e 89- #295537 fix warnings in update 6004 when site has no actual cck fields.
90Those errors were harmless, no need to worry or run update.php again if you had them.
92Minor fix:
93- #265795 by smk-ka: formatter labels go through t() twice in Views exposed data.
95CCK 6.2.rc5
c9cc355c 97
98Main bugs fixed :
99- #281388 Optionwidgets: Unselect values doesn't take.
100- #286457 Fix menu not being always rebuilt when needed.
101- #285138 by quicksketch and yched: Allow CCK to be installed in install profiles.
103Main new features :
104- #282183 by chx: Nodereference - 'Checkboxes/radios' widget.
105- #289138 by dopry: Add support for 'locked' fields (for module-defined fields).
107Other changes :
6afc8e97 108- #273502 Add descriptions to the non-CCK form elements on the Manage fields screen.
4057b865 109- Fix PHP warnings when field display is set to 'hidden' and field is in a fieldgroup.
60682c80 110- Re-introduce '<none>' choice for multiselect widgets (optionwidgets, noderef/userref select).
ad241539 111- #281449 Text: maxlength on textfield widget is 128 even when the field has no maximum length.
07bea7b2 112- Add tests for optionwidgets.
ad241539 113- #282175: Don't mention 'add more' button when the widget opts out of it.
3e05a333 114- Optionwidgets: use '- None -' for 'no selection' option (like core's taxonomy.module).
115- #286637 by poiu: clearer example for default value with php-code.
116- #93436 Add $form parameter to content_validate.
117- #277310 by fractile81: update node object by reference in content_load().
60bdb34a 118- #285771 Views integration: use the new 'float' filter handler where applicable.
90ce3d08 119- Fix PHP warnings when renaming a content type.
828ff4a0 120- #280410 Number: Fix prefix / suffix displayed when field is empty.
0a6fdfb7 121- #282937 Fix warnings on uninstall.
c9cc355c 122- #287540 Add index on nid in data tables, to optimize node deletion (requires update.php)
939a283a 123- #288578 Text: Fix max length to use utf8 length.
fcc09521 124- #222214 by aaron, deviantintegral : support tokens for nodererf / userref paths aliases.
125- #211306 by asimmonds: Fix error in D5 update with SQL strict mode.
126- #292338 by mh89: Set fieldgroup.module's weight to 9 (missing for new D6 installs).
127- #292463 Fieldgroup: missing update for fieldgroup table names (didn't actually break anything).
128- #292855 by Tgr - Fieldgroup: missing } in query on field instance deletion.
129- #292925 by greggles - Text: Fix PHP notice under some circumstances with textarea widget.
76cd6134 130- #292675 Support d-n-d reordering of non-cck "fields" for types that have no cck fields.
f4004b24 131- #289888 Nodereference: Fix 'full node' and 'teaser' formatters.
132- Display field type human names instead of machine names on 'Manage Fields' and 'Fields' overview pages.
133- #292884 Better help text for field template suggestions.
134- #293163 Use FAPI validation instead of field|widget_settings($op 'validate').
135 (the 'validate' op is still supported, though)
18442241 136- #75423 by mh89 - Text: 'size' setting for textfield widget.
fcc09521 137
4c189214 138
24c22295 139CCK 6.2.rc4
0d79362e 140===========
142This RC Mainly fixes a critical bug :
143 - Saving 'Display Fields' wipes widget settings.
7e578d66 145- #278325 Nodereference/Userreference - autocomplete widget does not check nodes/users are 'referenceable'.
95104bd1 146- #278325 followup: Unify the mechanism used to assign hook_field('validate') errors to form elements across fields and widgets.
7e578d66 147- Userreference - Turn the 'Reverse link' radios into a checkbox in the field settings.
578c7b49 148- Nodereference - Only list 'node' Views in the 'advanced mode', and differenciate default views as in D5.
149- Optionwidgets - fix PHP warning when creating a new 'on/off checkbox' and no allowed values could be set yet.
150- Optionwidgets - fix PHP warning on 'on/off checkbox' only one 'allowed value'.
151- Optionwidgets - add a 'warning' message to remind the admins they need to set allowed values.
368b1fa1 152- #278676 by hass: fix untranslated field and widget type names.
c21b1924 153- Do not validate the fields settings form when the 'change label / widget' submits the form.
c3e14528 154- #273502 Let the 'menu settings' node-form fieldset on node forms be repositioned.
feead187 155- #273502 followup: add a description for non-CCK 'fields' on 'Manage fields' tab.
b58cffa9 156- #278793 by hass: fix untranslated PHP code example.
157- Nodereference/Userreference - There were two 'no selection' choices on 'select list' widget for non-required fields.
158- #277486 Nodereference/Userreference - no selection with 'select list' widget stores 0 instead of NULL.
30bb51fa 159- #278789 better wording for the 'PHP default value invalid' error message.
daf99e91 160- #267771 orignal patch by quicksketch: Richer label settings for views fields.
30bb51fa 161- #279204 by eMPee584: fix edit paths inconsistency.
7e578d66 162- #276990 Nodereference - error message when no valid node with that title (autocomplete widget).
07c92176 163- Widget (FAPI-)validation messages do not display the field 'label' when the error is on a nth value (n > 1).
d6166089 164- Unify field validation error messages.
efa5f7e9 165- #269319 Reintroduce field template variants; add theme instructions text file.
ef111841 166- #179419 by smk-ka: Content Copy - Import fails when language not English.
7e578d66 167- #278899 Nodereference - Refactor 'advanced (Views-defined referenceable nodes)' to use views rendering.
168- #279190 content_crud_instance_update wiped existing widget settings in some cases.
169 Also added a tests for a few basic properties of the CRUD API.
0d79362e 170
2c637747 171CCK 6.2.rc3
bb5898bc 172===========
3a2d35f5 173- #278116 by Damien Tournoud: Make some strings easier to translate in views intergration forms.
174- #278135 fix some translation quirks + fix french typography for ':' :-)
175- Nodereference: 'Title mismatch. Please check your selection' error should break validation (+ fix typo).
2c637747 176- #277968 by jpetso: Fix fatal error when cck folder lives in the main /modules folder.
178CCK 6.2.rc2
baffb34d 179============
b88232b1 180- #276994 Follow up, remove conditional loading for, Views handles it.
182CCK 6.2.rc1
12811e22 184- #276994 Remove views_include_handlers() from, no longer needed.
722de8e7 185- Change 'allow_empty' to 'allow empty' so that Views filters work correctly.
ce4a81c8 186- #272871 Pass #node to formatters to be consistent with the values that were available in the D5 version.
9f381af8 187- #271294 Add TODO to get rid of content_write_record() once drupal_write_record() is patched.
c86709d7 188- #271294 Add documentation for the reason for having a custom version of drupal_write_record.
ee5dee46 189- Avoid E_All error when prefixes and suffixes are not defined in number module.
85dfac9b 190- Avoid E_All error, don't try to return $item[0] if there are no items.
35a15e3c 191- #266590 Make sure a view is valid before trying to use it in the nodereference module to fix upgrade errors when the view has not been updated to Views 2.
76ec5557 192- #258127 Get rid of content_menu_needs_rebuild() in remaining places and only rebuild the menu when absolutely needed.
baffb34d 193- Alter content_types_install() to make sure it picks up all the regular field and widget values out of the database. Some of the field values were missing, which caused some of the other values to get set incorrectly during updates and when modules are enabled.
194- #235063 Fix jumbled multiple values when hitting the 'add-more' button with more than 10 values.
195 Keep 'add more' button text consistent.
3a2d35f5 196- #270014 by yang_yi_cn: form for multiple values didn't call the right hook_widget
dd36f141 197- fix 'Undefined index: #access' notice when content_permissions.module is disabled
f4a340af 198- #270315 Mention dependency on schema.module in the desciptions of the CRUD tests.
199- #227951 by pwolanin: Add a permission for PHP 'default values' and 'allowed values'
200- #271682 by pwolanin: Make simpletests easier by not duplicating field name in same form.
201- #270315 by pwolanin: Update simpletest to use DrupalWebTestCase.
202- #227951 by pwolanin: Add permission for ability to use php code for default values and allowed values.
203- #270827 by pwolanin: Validity checks for the AHAH-'add more' request.
204- #271087 Properly handle values '0' for text and number fields.
205- #258407 Fix field template name to allow for easy overridability.
206- #274038 by jpetso: Fix non-JS mode for 'add more' button.
207- #275192 by jpetso: Attach AHAH behaviors to newly inserted widgets on JS 'add more'.
208- #271710 by pwolanin: tests for UI field CRUD, and node form generation.
209- #266696 by pwolanin: Unable to change the label or widget type for a field.
210- #201329 by pwolanin and yched: Fix content_field_instance_delete() not cleaning tables.
211- #271577 by pwolanin: Fix unsanitized text (optionwidgets, number, text, field labels, field descriptions)
212- #273539 by jpetso: Fix JS-'add more' for complex widgets (e.g. filefield)
213- #227435 by pwolanin: Usability - Put fields links on content type overview page
214- #277101: Hide fieldset-based fieldgroups when all fields empty
215- #198508: Prevent data loss for disabled fields.
217CCK 6.2.beta
220Content Generate (new feature)
221- #257874 and #187599 provide a way to auto-generate field content for the devel module.
222- #261633 E_All fix for content_generate.
225- #227439, #227437, #227945 Rework field and widget type handling to simplify the intial screen when choosing a field and widget type by making it a two-step process where you see only the widgets that apply to the field. Move the setting of the field label to the same place where you set the field name. Change the field edit screen to keep it from showing all the different widgets again and instead just display the current widget. Then add a button to change the widget which will take you to another screen to make the change since the rest of the page will need to change when the widget changes. Keep the changes to the widget label in that separate process, too, since that affects the menu tabs that need to be changed before redirecting back to the main page.
227Update processing
228- #256141 Add old updates back to fieldgroup.install for situations where the module was briefly enabled and then disabled and never used so the update process doesn't throw an error for the missing updates.
229- Fix potential E_All error in userreference after update.
230- Fix E_All error that can come up after update if text module is using format column.
231- Change the check in _content_type_info to be sure the new 'active' column exists before trying to query the table during installation and updates. Also fix E_All notice for non-existant db_columns during install and update.
232- #237585 Try to avoid foreach errors on missing content type information by creating empty arrays in content_info.
169430ce 235- #224391 Get default values working again for optionwidgets.
236- #251157 Make sure optionwidgets selections are not lost when previewing node.
237- #253038 Make sure empty optionwidget values are always arrays.
240- #264345 Create a nodereference wrapper for setting and rendering a view and store the rendered view in a static variable to ensure the same view is not rendered over and over in the same session.
241- #263936 Make sure nodereference select views do not try to use paging and do not limit the items per page.
242- Clean up autocomplete handling that uses Views as a selector.
243- #262112 Add missing hook_theme definition for the plain formatter.
244- #256440 Nodereference was passing wrong object to Views for the Views node selection option. Also need to limit available views to those that have fields defined so we can add the title to the view and so there is something meaningful to display in the select list.
246Views Integration
247- #264479 Make sure we don't try to init() a view for fields that don't have one selected.
248- #263936 Set arguments in execute_display. Also make sure to pass $string and $exact_string to the view.
249- #257566 Move all content fields into a single group in the Views UI.
250- #242856 Make sure the node.nid is aliased when creating our grouped fields query so the parent node isn't confused with nodereference's nid column.
251- #261528 Add in missing code to create the link to the node if that option is requested.
253Content Copy
254- #225664 Make sure groups get imported as well as fields.
257- #264768 Make sure handling for all possible states of #single is properly set up.
258- #260253 $node->type isn't always set, and if missing the formatters that use $fields($field_name, $type_name) to retrieve the field array end up with an empty value. Add the node type to all content fields views so we can be sure it's available and alter the content_format logic to look for the node type both at $node->type and at $node->node_type, where Views will put it, to properly set the content type.
261- #256116 Add a TODO to reconsider handling of CCK data when a content type is deleted.
262- Small fix to content_generate to get auto-generation of number values working.
263- #265334 Avoid format error messages in the unusual case where you have created CCK content and then delete the content type without deleting the node, since core does not delete the nodes in that case.
264- #227256 Add an additional check when creating a new field that the length is no more than 32 characters.
265- #260253 When content_type is set but empty, nothing is returned from content_fields(). Fix that by checking for empty() instead of isset(). This is a more general problem that should be fixed in content_fields().
266- #258127 Eliminate need to defer the rebuild of the menu, also adding TODO to see if content_menu_needs_rebuild() can be eliminated.
267- #257304 Make sure the widget description is never NULL to avoid problems when a NULL value gets wrapped with t().
268- #259704 Make sure help text always appears.
269- #255113 Make sure empty filtered text fields don't pick up unintended values from check_plain().