tables icon indicating copy to clipboard operation
tables copied to clipboard

Can't edit fields with multi select data type

Open lars-becker opened this issue 8 months ago • 0 comments

Steps to reproduce

I can't reproduce this bug from scratch, but I have a table filled with a lot of data. In one multi-select column all data is shown that was entered with an older table versions, but if the edit modal is opened existing data is not shown and can't be edited.

Console shows an unspecific "TypeError: this.values is undefined"

TypeError: this.values is undefined
    optionIdIsSelected https://*.de/apps/tables/js/tables-main.js?v=34c40877-42:2
    n https://*.de/apps/tables/js/tables-main.js?v=34c40877-42:2
    getAllNonDeletedOrSelectedOptions https://*.de/apps/tables/js/tables-main.js?v=34c40877-42:2
    get https://*.de/apps/tables/js/tables-main.js?v=34c40877-42:2
    evaluate https://*.de/apps/tables/js/tables-main.js?v=34c40877-42:2
    Or https://*.de/apps/tables/js/tables-main.js?v=34c40877-42:2
    o$< https://*.de/apps/tables/js/tables-main.js?v=34c40877-42:2
    _render https://*.de/apps/tables/js/tables-main.js?v=34c40877-42:2

and the generated HTML only shows an empty element where the form data should appear: <div><!----> <!----></div>.

Any hints how I can debug this further?

Expected behavior

Showing existing data and allow to add multi-select categories.

Actual behavior

No data is shown. Existing data is in the database; but no new data can't be added. If the column type is changed to mandatory an error is generated in the HTML but the form field doesn't appear either.

Tables app version

0.7.3

Browser

Firefox 127

Client operating system

Archlinux

Operating system

No response

Web server

None

PHP engine version

None

Database

None

Additional info

It's clearly a bug the Javascript fronted; but I don't have any experience with it to debug the problem.

lars-becker avatar Jun 19 '24 16:06 lars-becker