Bug 32030: Fix removal of agreement's vendor
It was not possible to select the blank value and submit the form Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
67c3fba7aa
commit
00daa3b0ea
1 changed files with 4 additions and 0 deletions
|
@ -296,6 +296,10 @@ export default {
|
|||
delete agreement.agreement_id
|
||||
agreement.is_perpetual = agreement.is_perpetual ? true : false
|
||||
|
||||
if (agreement.vendor_id == "") {
|
||||
agreement.vendor_id = null
|
||||
}
|
||||
|
||||
agreement.periods.forEach(p => {
|
||||
p.started_on = $date_to_rfc3339(p.started_on)
|
||||
p.ended_on = p.ended_on ? $date_to_rfc3339(p.ended_on) : null
|
||||
|
|
Loading…
Reference in a new issue