Closed (fixed)
Project:
Bean (for Drupal 7)
Version:
7.x-1.0-beta6
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Nov 2011 at 15:43 UTC
Updated:
30 Nov 2011 at 15:00 UTC
The delta is created based on the label. So if you add another bean with the same label the delta won't be unique. The database field is a unique field so an error occurs.
In the patch attached I add a prefix to the delta until we have a unique one.
| Comment | File | Size | Author |
|---|---|---|---|
| bean.patch | 1.04 KB | jasperknops | |
| database_error.png | 60.85 KB | jasperknops |
Comments
Comment #1
indytechcook commentedYou are absolutely right about the validation. I actually remember thinking about that when I was writing it, then forgetting to do something about it. I'll take a look at the patch tonight.
Comment #2
indytechcook commentedThanks again!
http://drupal.org/commitlog/commit/22232/aca945ad8777f4161f944db8a2a11ee...