Posted by hass on January 4, 2012 at 10:36pm
2 followers
| Project: | Project |
| Version: | 6.x-1.x-dev |
| Component: | Releases |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
If the update fixed just the same values like before the db_affected_rows() are 0. In this case you get:
user warning: Duplicate entry '4' for key 1 query: INSERT INTO project_release_projects (nid, releases, version_format) VALUES (4, 0, '') in sites\all\modules\project\release\includes\project_edit_releases.inc on line 266.In cache.inc I have seen this will be catched with "@" on the INSERT.
Comments
#1
Patch attached
#2
The last submitted patch, 1394398 Duplicate entry in project_release_projects.patch, failed testing.
#3
#1: 1394398 Duplicate entry in project_release_projects.patch queued for re-testing.
#4
The last submitted patch, 1394398 Duplicate entry in project_release_projects.patch, failed testing.
#5
d.o Testbot seems to have issue with spaces in patch files...
As db_affected_rows() is used very often I fixed a few more that may have the same issues.
#6
The last submitted patch, 1394398_Duplicate_entry_in_project_release_projects_all.patch, failed testing.
#7
#8
#5: 1394398_Duplicate_entry_in_project_release_projects_all.patch queued for re-testing.