By somes on
Im using a CCK field integer to keep tabs on the number of times users have created a certain type of node
things seemed to be working fine until the number of entries gets to ten and then is resets the value to 1
I'm using something like this in question_form_alter hook (custom module)
$form['field_question']['und'][0]['value']['#default_value'] = $record2['field_question_value'][0]+1;
any ideas
Im looking into checking the values on the save rather than the creation I know you can save values greater than 10 to field but only when you add them directly
Comments
fixed
error in my code
$form['field_question']['und'][0]['value']['#default_value'] = $record2['field_question_value']+1;