term_fields_get_row is broken as the query is bogus because it doesn't use the passed in $fid. Here is a patch that fixes it:

--- term_fields.module.orig Mon Oct 26 10:40:50 2009
+++ term_fields.module Fri Nov 20 12:00:45 2009
@@ -398,7 +398,7 @@
*/
function term_fields_get_row($fid) {
$sql = "SELECT * FROM {term_fields} WHERE fid = '%s'";
- return db_fetch_object(db_query($sql));
+ return db_fetch_object(db_query($sql,$fid));
}

/**

CommentFileSizeAuthor
#1 term_fields_get_row_bug1.patch694 byteshass

Comments

hass’s picture

Status: Active » Reviewed & tested by the community
StatusFileSize
new694 bytes

Patch attached, this trivial bug don't really need testing.

hass’s picture

Not sure, but #618814: No term fields saved if integer fields are empty could be a duplicate or at least releated.

hass’s picture

Status: Reviewed & tested by the community » Fixed

Has been committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.