OsTicket Repopulate user__cdata when creating a field form user (Null or zero)

34 Views Asked by At

I have a problem when creating a field for the user form. I know that when creating a field, the user__cdata table is recreated and repopulated. However, when repopulating the user__cdata table the field values are NULL or 0.

I made a PHP script to repopulate this data based on the form_entry_values table, which worked.

But, when creating a new field, again the user__cdata table is repopulated with values of NULL or zero.

  1. Table user__cdata with data:

    table with data

  2. When I create a field in the user form, the data looks like this:

    data after filed created

    Version:

    versions

Upgrading is not an option for me at the moment as there are some features that have been customized.

I hope the user__cdata table doesn't lose its data when creating a new field in the user form.

0

There are 0 best solutions below