duplicate entry problem
kansaj - November 3, 2009 - 16:40
| Project: | Better Select |
| Version: | 6.x-1.x-dev |
| Component: | Documentation |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hi,
I'm using Drupal 6.14 and tried the module. Every time I try to select or deselect image teh folwoing error appears
user warning: Duplicate entry '53-0' for key 1 query: INSERT INTO image_attach (nid, iid, weight) VALUES (53, 0, 1) in ...../sites/all/modules/image/contrib/image_attach/image_attach.module on line 349 (example). Actually, the proper image is attached, but the duplicate entry leads to another problem. When I deselect and image attached to the node, the image disappear, but $node->iids still have value. I checked and found out that in the database always stay one entry.
How could I be able to escape this problem.

#1
i think
I found the problem is not related to the image module but to better seelect module and its handling of no image value.
#2
Ok I'm moving the issue here. When in the list is -none- choice the Better select always check it and does this by submission of the values also.