Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
field system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Feb 2011 at 22:27 UTC
Updated:
9 Mar 2011 at 20:31 UTC
From #932502-130: Changing allowed values in "List" fields :
install a version of core before #111/#126 went in (e.g., RC3), then add a "List (numeric)" field to a content type, and set allowed values to an empty string. Then update to 7.0.
Warning: array_combine(): Both parameters should have at least 1 element in list_update_7001()
Only happened for list fields with an empty list of allowed_values (e.g because the field uses allowed_values_function).
Mostly harmless error, and most d7 sites for which list_update_7001() was relevant almost certainly ran it by now. But since #1022924: Updates are broken for deleted fields is about to have list_update_7001() rerun for a couple fields, we might as well fix this.
| Comment | File | Size | Author |
|---|---|---|---|
| list_update_warnings.patch | 755 bytes | yched |
Comments
Comment #1
bfroehle commentedYes, a simple fix to a harmless warning --- there's no point recalculating every key-value pair of $allowed_values if it is empty!
Also, it'd be nice to get this one in before #1022924-19: Updates are broken for deleted fields, as @yched points out.
Comment #2
dries commentedCommitted to CVS HEAD. Thanks.