Subtable not updated when other subtables are empty

Wappler Version : 5.5.3
Operating System : mac
Server Model: node
Database Type: mysql8
Hosting Type:

Expected behavior

When using an Update action in an api, all subtables should be updated.

Actual behavior

If multiple subtables are used, and a subtable does not have any values, subtables after that do not update.

How to reproduce

Create an update action with several subtables to be updated:

In a server connect form, use a form repeat for each of the subtables.

Using the example above, if e_venues has an item, and e_ticket_classes has an item, but e_agenda_items has no items…e_venues will be inserted, but e_ticket_classes will not.

If I provide items for all 3 subtables, they are all inserted properly.

@patrick Anything I can do to workaround this?

You can test the following update: dbupdater.zip (2.6 KB) unzip to lib/modules.

Looks good Patrick…thanks for the update!

This has been fixed in Wappler 5.6.0

This topic was automatically closed after 32 hours. New replies are no longer allowed.