← Back to team overview

dhis2-devs team mailing list archive

[Bug 1563546] Re: [Api] Removing an optionSet from dataElement

 

This is because to replace you need to use mergeMode=REPLACE, this is
the only way to clear out properties at the moment.

** Changed in: dhis2
       Status: Incomplete => Invalid

-- 
You received this bug notification because you are a member of DHIS 2
developers, which is subscribed to DHIS.
https://bugs.launchpad.net/bugs/1563546

Title:
  [Api] Removing an optionSet from dataElement

Status in DHIS:
  Invalid

Bug description:
  Heya,

  When iI attempt to PUT back an /api/dataElement/<id>?fields=:owner
  object back to the api i can't seem to remove the optionSet value that
  is set on the dataElement.

  I have attempted both leaving the property out  of the payload all
  together and sending a `null` value. Both seem to not remove the value
  that is set and the property keeps it's old value.

  To reproduce:
  + Add an optionSet to a dataElement
  + Attempt to remove it using a PUT operation

To manage notifications about this bug go to:
https://bugs.launchpad.net/dhis2/+bug/1563546/+subscriptions


References