Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database Fields reinitialization leads to error message. #1559

Closed
svenoe opened this issue Jan 25, 2022 · 1 comment
Closed

Database Fields reinitialization leads to error message. #1559

svenoe opened this issue Jan 25, 2022 · 1 comment
Assignees
Labels
bug Something isn't working as intended
Milestone

Comments

@svenoe
Copy link
Contributor

svenoe commented Jan 25, 2022

Having a DB field in AgentTicketFreeText filled, will lead to a "Duplicated entry" error upon expanding the article box when AgentTicketFreeText###Note is set but not AgentTicketFreeText###NoteMandatory.

This comes from

TargetNS.AddResultElement(DynamicFieldName, Label, Key);
being called (tested), which likely comes from
$('.WidgetSimple.Collapsed .WidgetAction.Toggle').on('click', function () {
InitDynamicFields();
});

Probably a good fix would be to restrict the initialization to fields within the opened widget.

@svenoe svenoe added the bug Something isn't working as intended label Jan 25, 2022
@svenoe svenoe added this to the OTOBO 10.0 milestone Jan 25, 2022
@stefanhaerter
Copy link
Contributor

Note: Entry is added not only when expanding box but also when collapsing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working as intended
Projects
None yet
Development

No branches or pull requests

3 participants