Are you speaking of a link owner modifying a record and you wanting the original data to be kept for the new fields?
Or are you referring to a record being modified on the admin screen?
If the latter, and the fields were added correctly in links.def, there should be no problem.
If the former, you need to go to sub process_form in modify.cgi find this code:
# the admin decides to add it into the real database.
Beneath that code, you need to add statements similar to:
$in{$db_cols[$db_newfield1]} = $original{'Newfield1'};
$in{$db_cols[$db_newfield2]} = $original{'Newfield2'};
You would need to change the $db_newfield1 and $db_newfield2 as well as 'Newfield1' and 'Newfield2' to what is defined in links.def.
I hope this helps.
Or are you referring to a record being modified on the admin screen?
If the latter, and the fields were added correctly in links.def, there should be no problem.
If the former, you need to go to sub process_form in modify.cgi find this code:
Code:
# Print out the modified record to a "modified database" where it is stored until # the admin decides to add it into the real database.
Beneath that code, you need to add statements similar to:
Code:
# Keep original data $in{$db_cols[$db_newfield1]} = $original{'Newfield1'};
$in{$db_cols[$db_newfield2]} = $original{'Newfield2'};
You would need to change the $db_newfield1 and $db_newfield2 as well as 'Newfield1' and 'Newfield2' to what is defined in links.def.
I hope this helps.