Closed (fixed)
Project:
Term Fields
Version:
6.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
1 Mar 2009 at 12:12 UTC
Updated:
15 Mar 2009 at 18:50 UTC
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
Comment #1
BakaNyaka-1 commentedFixed 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;
}
Comment #2
archard commentedI forgot to update that part in my last release. Thanks for the report. It's now fixed in 1.4.