Closed (fixed)
Project:
Features
Version:
6.x-1.0-beta4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
25 Feb 2010 at 05:16 UTC
Updated:
13 Mar 2010 at 00:30 UTC
Jump to comment: Most recent file
Nice to meet you. Does not the contribution care about DRUPALBeginner either?
and Is the contribution in Japanese also possible?
FEATURESモジュールで、エクスポートしたコンテンツタイプをインストール時に生成しているのですが、
Fealggroupの生成で以下のエラー(Duplicate insert)が確認されます。
Duplicate entry 'profile-group_profile_personal' for key 'PRIMARY' query: INSERT INTO content_group (group_type, type_n.........
fieldgroup_groupsで既に登録済のfieldgroupを除外している様ですので
因みに、次の様な修正を加えるとエラーは出ません。
[feaures.fieldgropu.inc]
function fieldgroup_features_rebuild($module) {
..........
$groups = fieldgroup_groups($type_name,FALSE,TRUE); ←
//$groups = fieldgroup_groups($type_name);
..........
}
動作に影響はありませんが
インストール時のDuplicate Errorを消したいのですが、
よろしくお願いします。
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | features-725132-4.patch | 1.19 KB | q0rban |
Comments
Comment #1
mrfelton commentedI get the same error (numerous times) when trying to enable by using
features_install_modulesa feature in an implementation ofhook_update_N().e.g.
Comment #2
q0rban commentedHmm, I'm assuming this must be enabling the feature on the site in which it was created? I'll have to check that out.
Comment #3
mrfelton commentedYes, that is correct. I'm getting these errors when enabling the feature on a site where the features components already exist (that could be the site the feature was created on - which it is in this case, but could also be the any other site which already has the content types defined, such as the site I intend to enable this feature on once it's complete.).
Comment #4
q0rban commentedHmm, I couldn't actually replicate this, but I can see how it might happen. Attached patch should fix it.
Comment #5
yhahn commentedCommitted: http://drupal.org/cvs?commit=334414