elabftw / elabftw

:notebook: eLabFTW is the most popular open source electronic lab notebook for research labs.
https://www.elabftw.net
GNU Affero General Public License v3.0
1.01k stars 218 forks source link

Duplication of Template - missing data and extra fields #5312

Open GraceEguia opened 20 hours ago

GraceEguia commented 20 hours ago

Detailed description of the problem

When duplicating a Template, the Category, Status and Permission for the template are lost or changed to other value. Additionally, the Extra fields are not duplicated at all.

Expected Behavior

The system should generate an exact copy of the selected template, data should not be missed nor changed.

Steps to reproduce the behavior

  1. Have a template with a specific Category, Status, Permission for template and Extra fields.
  2. Duplicate it.
  3. New template has Category and Status as Not Set; Permissions for template has on Visibility to Only members of the team and on Can Write to Only owner and admins. The Extra fields section is empty.

What eLabFTW version are you using? Visible in bottom right of a page.

5.1.9

Do you have any idea what may have caused this?

No.

Do you have an idea how to solve the issue?

No.

Additional information

No response

NicolasCARPi commented 19 hours ago

Hello,

Thanks for report. Patch will be in next version.

GraceEguia commented 19 hours ago

Thanks a lot!