system
December 14, 2017, 10:46am
1
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
system
December 14, 2017, 10:48am
2
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.
system
December 14, 2017, 10:54am
3
Florian Sauter wrote:
please change this. It really should not depend which way the appointment is created.
When can you get this done?
system
December 14, 2017, 10:59am
4
Dmytro Bondarev wrote:
it does not depend how appointment done.
you have to pass value for each field.
system
December 14, 2017, 11:00am
5
Florian Sauter wrote:
but thats why there are default values.
So that I do not have to pass anything and they get applied?
system
December 14, 2017, 11:08am
6
Dmytro Bondarev wrote:
As i said before - default value is predefined value for inputs in user interface.
You have to pass all values.
system
December 14, 2017, 11:08am
7
Redmine Admin wrote:
API returns you which value is default. Now it is work for your code to process it how you need.
system
December 14, 2017, 11:09am
8
Florian Sauter wrote:
if I setup a default value for a field, why should I have to pass it by API?
system
December 14, 2017, 10:34pm
10
Florian Sauter wrote:
I understand and I ask you to change this as I think this makes no sense and is inconsistent.