forked from civicrm/civicrm-core
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CRM-15680 fix custom data on survey & campaign
- Loading branch information
1 parent
5b37ca7
commit bf38705
Showing
6 changed files
with
16 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bf38705
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was also able to fix the case API to work with custom data - but I couldn't make the test work due to enotices in the subscriber framework - one which CRM-15785 should fix but I gave up on this one. I'll try to make a record of the patch code somewhere as I don't really want to fix the bug if I can't get the test to work
Failure in api call for Case create: Failed to parse CaseType XML: Line=1 Column=1 Code=4: Start tag expected, '<' not found
#0 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/CRM/Case/XMLProcessor.php(69): CRM_Case_XMLRepository->retrieve('name_21')
Fix Group Organization BAO not to error if the unique pairing up group_i... #1 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/CRM/Case/XMLProcessor/Process.php(626): CRM_Case_XMLProcessor->retrieve('name_21')
Report api - temp internal PR for commentary #2 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/Civi/CCase/Events.php(92): CRM_Case_XMLProcessor_Process->getListeners('name_21')
CRM-14159 API Add generic options['metadata'] = labels functionality #3 [internal function]: Civi\CCase\Events::delegateToXmlListeners(Object(Civi\CCase\Event\CaseChangeEvent))
Crm 16555 4 #4 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/packages/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatch
er.php(164): call_user_func(Array, Object(Civi\CCase\Event\CaseChangeEvent))
#5 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/packages/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatch
er.php(53): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'hook_civicrm_ca...', Object(Civi\CCase\Event\CaseChangeEvent))
#6 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/CRM/Utils/Hook.php(1699): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('h
ook_civicrm_ca...', Object(Civi\CCase\Event\CaseChangeEvent))
#7 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/Civi/CCase/Events.php(79): CRM_Utils_Hook::caseChange(Object(Civi\CCase\Analyzer))
#8 [internal function]: Civi\CCase\Events::fireCaseChangeForRealz(1)
#9 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/Civi/Core/Transaction/Frame.php(185): call_user_func_array(Array, Array)
#10 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/Civi/Core/Transaction/Frame.php(138): Civi\Core\Transaction\Frame->invokeCallbacks(2)
#11 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/Civi/Core/Transaction/Manager.php(115): Civi\Core\Transaction\Frame->finish()
#12 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/CRM/Core/Transaction.php(140): Civi\Core\Transaction\Manager->dec()
#13 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/CRM/Core/Transaction.php(127): CRM_Core_Transaction->commit()
#14 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/Civi/API/Subscriber/TransactionSubscriber.php(157): CRM_Core_Transaction->__destruct()
#15 [internal function]: Civi\API\Subscriber\TransactionSubscriber->onApiRespond(Object(Civi\API\Event\RespondEvent))
#16 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/packages/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatc
her.php(164): call_user_func(Array, Object(Civi\API\Event\RespondEvent))
civicrm#17 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/packages/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/EventDispatc
her.php(53): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch(Array, 'api.respond', Object(Civi\API\Event\RespondEvent))
civicrm#18 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/Civi/API/Kernel.php(221): Symfony\Component\EventDispatcher\EventDispatcher->dispatch('
api.respond', Object(Civi\API\Event\RespondEvent))
civicrm#19 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/Civi/API/Kernel.php(98): Civi\API\Kernel->respond(Object(Civi\API\Provider\MagicFunctio
nProvider), Array, Array)
civicrm#20 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/api/api.php(25): Civi\API\Kernel->run('Case', 'create', Array, NULL)
civicrm#21 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/tests/phpunit/CiviTest/CiviUnitTestCase.php(850): civicrm_api('Case', 'create', Array)
civicrm#22 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/tests/phpunit/CiviTest/CiviUnitTestCase.php(882): CiviUnitTestCase->civicrm_api('Case',
'create', Array)
civicrm#23 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/tests/phpunit/api/v3/SyntaxConformanceTest.php(596): CiviUnitTestCase->callAPISuccess('
Case', 'create', Array)
civicrm#24 [internal function]: api_v3_SyntaxConformanceTest->testCustomDataGet('Case')
civicrm#25 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/packages/PHPUnit/Framework/TestCase.php(942): ReflectionMethod->invokeArgs(Object(api_v
3_SyntaxConformanceTest), Array)
civicrm#26 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/tests/phpunit/CiviTest/CiviUnitTestCase.php(182): PHPUnit_Framework_TestCase->runTest()
civicrm#27 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/packages/PHPUnit/Framework/TestCase.php(804): CiviUnitTestCase->runTest()
civicrm#28 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/packages/PHPUnit/Framework/TestResult.php(649): PHPUnit_Framework_TestCase->runBare()
civicrm#29 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/packages/PHPUnit/Framework/TestCase.php(751): PHPUnit_Framework_TestResult->run(Object(
api_v3_SyntaxConformanceTest))
civicrm#30 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/packages/PHPUnit/Framework/TestSuite.php(772): PHPUnit_Framework_TestCase->run(Object(P
HPUnit_Framework_TestResult))
civicrm#31 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/packages/PHPUnit/Framework/TestSuite.php(745): PHPUnit_Framework_TestSuite->runTest(Obj
ect(api_v3_SyntaxConformanceTest), Object(PHPUnit_Framework_TestResult))
civicrm#32 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/packages/PHPUnit/Framework/TestSuite.php(705): PHPUnit_Framework_TestSuite->run(Object(
PHPUnit_Framework_TestResult), '/ustom/', Array, Array, false)
civicrm#33 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/packages/PHPUnit/TextUI/TestRunner.php(325): PHPUnit_Framework_TestSuite->run(Object(PH
PUnit_Framework_TestResult), '/ustom/', Array, Array, false)
civicrm#34 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/packages/PHPUnit/TextUI/Command.php(232): PHPUnit_TextUI_TestRunner->doRun(Object(PHPUn
it_Framework_TestSuite), Array)
civicrm#35 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/packages/PHPUnit/TextUI/Command.php(139): PHPUnit_TextUI_Command->run(Array, true)
civicrm#36 /home/vagrant/civicrm-buildkit/build/drupal-demo/sites/all/modules/civicrm/tools/scripts/phpunit(80): PHPUnit_TextUI_Command::main()
civicrm#37 {main}
Failed asserting that 1 matches expected 0.