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

Default value of custom fields are not saved #649

Closed
ivityc opened this issue Jul 26, 2018 · 1 comment
Closed

Default value of custom fields are not saved #649

ivityc opened this issue Jul 26, 2018 · 1 comment
Assignees
Labels

Comments

@ivityc
Copy link

ivityc commented Jul 26, 2018

Request Type

Bug

Work Environment

Question Answer
OS version (server) Ubuntu 16.04, ...
OS version (client) Seven
TheHive version 3.0.10
Package Type DEB
Browser type & version Chrome 67.0.3396.99

TheHive3.0.10
Elastic4Play1.4.6
Play2.6.7
Elastic4s5.6.0
ElasticSearch5.6.2
CORTEX
CORTEX-SERVER-ID - 2.0.4 (OK)

Problem Description

We have a Case Template with 16 custom fields.
Some of them are pre-populated with default values.
trying to add a default value to some of the existing fields (currently not populated) we can correctly perform such action, save it, the notification of the save action appears and it confirm that the save has been done.
Refreshing the page and opening again the case template, the previously addedd default values are no longer present. (This occurs editing a single field or more than one at time)
the problem is occurring only on boolean fields and only if the choosen value is = false.
choosing ''true'' the field is properly saved and visible while reopening the template.
while ''false'' value disappear.

Steps to Reproduce

step 1 Open an existing case template (in our case the problematic one has 16 custom fields)
step 2 add a default value for one or more boolean custom fields using ''false'' as value
step 3 save the template
step 4 reopen the case template and check if the populated value is still there

Possible Solutions

none

Complementary information

@nadouani nadouani self-assigned this Jul 26, 2018
@nadouani nadouani added the bug label Jul 26, 2018
@nadouani nadouani added this to the 3.1.0 (Cerana 1) milestone Jul 26, 2018
@nadouani
Copy link
Contributor

The false value is in fact wrongly saved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants