I have just upgraded my 4.5 database and a form which worked yesterday now fails to add new records. The processing is:
1) From browse form click "Add"
2) Upload a file using code adapted from https://github.com/smalos/nuBuilder4-Co ... d_file.php.
3) Click "Save" on the edit form.
4) In After Save code update the new record with a date taken from the uploaded data.
5) Show the uploaded data in a subform.
The problem being there is no row in the form table for the #RECORD_ID#, though the #RECORD_ID# is present in the subform data created during "After Save". I can find no errors in the browser console or the httpd error logs and if I query the form table in After Save there is no data for #RECORD_ID#.
As I say, all was working before the upgrade and no other forms are misbehaving as far I have been able to discern! The form table is only two columns - a primary key and a date.
Neil.
Welcome to the nuBuilder Forums!
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.
Add Record Failure
-
- nuBuilder Team
- Posts: 4562
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 76 times
- Been thanked: 528 times
- Contact:
Re: Add Record Failure
Hi Neil,
Could you try replacing
with
in nudata.php, line L325
and see if saving works again?
Could you try replacing
Code: Select all
if (!empty($F)) {
Code: Select all
if (true) {
and see if saving works again?