[#76] default value does not get applied

Migrated from Redmine #76 | Author: Florian Sauter
Status: Rejected | Priority: High, I’m very impatient | Created: 2017-12-14


we have a custom field for “Source”, configured as dropdown and a default value specified.
Anyway you can see that this default value does not get applied, especially when creating new bookings by API

Dmytro Bondarev wrote:

In any case you have to pass value, even if there is default value.
The default value is just value that you can set by default in user interface.

Florian Sauter wrote:

please change this. It really should not depend which way the appointment is created.
When can you get this done?

Dmytro Bondarev wrote:

it does not depend how appointment done.
you have to pass value for each field.

Florian Sauter wrote:

but thats why there are default values.
So that I do not have to pass anything and they get applied?

Dmytro Bondarev wrote:

As i said before - default value is predefined value for inputs in user interface.
You have to pass all values.

Redmine Admin wrote:

API returns you which value is default. Now it is work for your code to process it how you need.

Florian Sauter wrote:

if I setup a default value for a field, why should I have to pass it by API?

Dmytro Bondarev wrote:

because

default value is predefined value for inputs in user interface.

Florian Sauter wrote:

I understand and I ask you to change this as I think this makes no sense and is inconsistent.