When i create a new term with custom field everything is ok, but when i try to update existing one, even the one i just created i get the following error:
Fatal error: Call to undefined function term_fields_result_count() in /term_fields.module on line 222

Comments

BakaNyaka-1’s picture

Status: Active » Needs work

Fixed it myself. It seems you forgot to include this function in last version of your module. I copypasted it from previous version and it works fine now.

/**
* Helper function to determine if a query result is empty or not.
*/
function term_fields_result_count($result) {
$count = 0;
while ($data = db_fetch_object($result)) {
$count++;
}

return $count;
}

archard’s picture

Status: Needs work » Fixed

I forgot to update that part in my last release. Thanks for the report. It's now fixed in 1.4.

Status: Fixed » Closed (fixed)

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