Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.1.1
-
Fix Version/s: 4.1.2
-
Component/s: None
-
Labels:None
Description
Test below fails with error DB_DataObject Error: You cannot do two queries on the same object (copy it before finding)
- This test checks for a memory leak observed when doing 2 gets on current domain
*/
public function testGetCurrentDomainTwice() { $domain = civicrm_api('domain', 'getvalue', array( 'version' => 3, 'current_domain' => 1, 'return' => 'name')); $this->assertAPISuccess($domain); $domain = civicrm_api('domain', 'getvalue', array( 'version' => 3, 'current_domain' => 1, 'return' => 'name')); $this->assertAPISuccess($domain); }