Fix creation of additional zero value line item when changing fee selection in edge...
authoreileen <emcnaughton@wikimedia.org>
Sat, 15 Jun 2019 11:27:25 +0000 (07:27 -0400)
committereileen <emcnaughton@wikimedia.org>
Fri, 21 Jun 2019 14:43:04 +0000 (10:43 -0400)
commit745319383dcf017537be91c5d17b536b9372ef9e
tree6787477fe88339cdc14c6196612f33d6506b773d
parenta2c5de48ef39418b05f9f4f6e71c1ed61f27861b
 Fix creation of additional zero value line item when changing fee selection in edge case

In working with the test written by Monish as part of multiline allocation I hit this bug whereby
a zero value line item is created when altering one of 2 text fields in a price set
CRM/Price/BAO/LineItem.php
CRM/Price/BAO/PriceField.php
CRM/Price/BAO/PriceFieldValue.php
tests/phpunit/CRM/Event/Form/ParticipantTest.php
tests/phpunit/CiviTest/CiviUnitTestCase.php