api/v3/RelationshipType - Fix default for "is_active"
authorTim Otten <totten@civicrm.org>
Sat, 24 May 2014 03:37:19 +0000 (20:37 -0700)
committerTim Otten <totten@civicrm.org>
Mon, 26 May 2014 20:05:26 +0000 (13:05 -0700)
api/v3/RelationshipType.php

index e3f5661af840eac675aa31d0d749533d0f7c1d0f..8c2f6bad5db664b0c362879ca783ed1f6cad2f2b 100644 (file)
@@ -87,6 +87,7 @@ function _civicrm_api3_relationship_type_create_spec(&$params) {
   $params['contact_type_b']['api.required'] = 1;
   $params['name_a_b']['api.required'] = 1;
   $params['name_b_a']['api.required'] = 1;
+  $params['is_active']['api.default'] = 1;
 }
 
 /**