X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FDAO%2FIM.php;h=e53ce78aff364fe9c253b088787e41c1a45c31d0;hb=a36434b96485cb086480c8deae0fe408b1ba1d01;hp=eed59c3908653a1393073d608244ebea9e60da20;hpb=bf144e748c568012e20bca579d1c742af1a0ef00;p=civicrm-core.git diff --git a/CRM/Core/DAO/IM.php b/CRM/Core/DAO/IM.php index eed59c3908..e53ce78aff 100644 --- a/CRM/Core/DAO/IM.php +++ b/CRM/Core/DAO/IM.php @@ -114,6 +114,7 @@ class CRM_Core_DAO_IM extends CRM_Core_DAO { 'title' => ts('Instant Messenger ID'), 'description' => ts('Unique IM ID'), 'required' => TRUE, + 'where' => 'civicrm_im.id', 'table_name' => 'civicrm_im', 'entity' => 'IM', 'bao' => 'CRM_Core_BAO_IM', @@ -124,6 +125,7 @@ class CRM_Core_DAO_IM extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_INT, 'title' => ts('IM Contact'), 'description' => ts('FK to Contact ID'), + 'where' => 'civicrm_im.contact_id', 'table_name' => 'civicrm_im', 'entity' => 'IM', 'bao' => 'CRM_Core_BAO_IM', @@ -135,6 +137,7 @@ class CRM_Core_DAO_IM extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_INT, 'title' => ts('IM Location Type'), 'description' => ts('Which Location does this email belong to.'), + 'where' => 'civicrm_im.location_type_id', 'table_name' => 'civicrm_im', 'entity' => 'IM', 'bao' => 'CRM_Core_BAO_IM', @@ -173,6 +176,7 @@ class CRM_Core_DAO_IM extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_INT, 'title' => ts('IM Provider'), 'description' => ts('Which IM Provider does this screen name belong to.'), + 'where' => 'civicrm_im.provider_id', 'table_name' => 'civicrm_im', 'entity' => 'IM', 'bao' => 'CRM_Core_BAO_IM', @@ -190,6 +194,7 @@ class CRM_Core_DAO_IM extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is IM Primary?'), 'description' => ts('Is this the primary IM for this contact and location.'), + 'where' => 'civicrm_im.is_primary', 'default' => '0', 'table_name' => 'civicrm_im', 'entity' => 'IM', @@ -201,6 +206,7 @@ class CRM_Core_DAO_IM extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_BOOLEAN, 'title' => ts('Is IM Billing?'), 'description' => ts('Is this the billing?'), + 'where' => 'civicrm_im.is_billing', 'default' => '0', 'table_name' => 'civicrm_im', 'entity' => 'IM',