Closed (won't fix)
Project:
Term Fields
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
6 May 2010 at 10:02 UTC
Updated:
19 Oct 2011 at 19:06 UTC
Jump to comment: Most recent file
Comments
Comment #1
b-prod commentedYour patch has a bug.
This modification does not work: the result of this function is not the same than the original query. And it is not the subject of current issue, so I will create a new issue apart for this and create a patch myself.
And there are some extra spaces to remove.
Could you create a new patch without this modification and work on the dev version?
Powered by Dreditor.
Comment #2
b-prod commentedThe code factorization has been ported in the dev version: 791434: Factorize a part of code. Actually it is not the only part of code which requires some review. But since D7 will handle term fields in core, I prefer only work on bugs and some features request, because this module will become obsolete.
Could you use drupal_write_record() instead of db_query (so only 1 line is necessary) in the function term_fields_add_field() and serialize(array()) instead of 'a:0:{}'. The code would look better like that.
Comment #3
dotton commentedThanks for the feedback - I'll submit a new patch against the dev version.
Comment #4
b-prod commentedYou should use CSV, because it may take some time for the modified dev version to be up to date in the project page. Currently there is still an old version.
Comment #5
dotton commentedOk, second attempt. This patch is against HEAD.
To recap, I've created two new functions term_fields_add_field() and term_fields_delete_field() in term_fields.module so I can call them from other modules.
term_fields_add_field() now uses drupal_write_record(), and term_fields_admin_new_submit() uses serialize(array()).
If there's still a bug there please spell it out for me, as I'm struggling to see it.
Comment #6
b-prod commentedOK, I tried to apply it on DEV version, but it failed. So I need to have a patch which I can apply to the DEV version. If you don't have time for that, I will try to work on that, but currently I am not very available.
Comment #7
kenorb commentedFailing for me as well.
Comment #8
b-prod commentedThis does not seem to be an issue for 2.x branch.