Closed (fixed)
Project:
Family Tree
Version:
7.x-1.0
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
26 Nov 2011 at 00:04 UTC
Updated:
21 Oct 2012 at 19:05 UTC
In the function 'import_form_submit' the values for starting point, number of records, and replace option are ignored due to incorrect referencing and consequently the defaults of:
are always used.
You need to reference "$form_state['values']['start']", "$form_state['values']['nrecords']", and "$form_state['values']['replace']".
Once that is working, you will need to address the logic of when to create and delete the family_relations_temp table.
Comments
Comment #1
old_dog commentedThere's more....
The 'isset()' test returns TRUE for an empty string variable, which is what you get if you leave the fields blank on the form.
To make it work, test for '!empty()'
Comment #2
old_dog commentedComment #3
Zarevac commented