Skip to content

Commit

Permalink
Add import templates
Browse files Browse the repository at this point in the history
This creates a couple of initial templates in line with what
Melanie & I have been testing. I figure it will save re-creating on
live & also help us to test in future

Also included is a sample data file for us to use while testing

Includes civicrm/civicrm-core#26046
and civicrm/civicrm-core#26055

Bug: T303986

Change-Id: I91490eaa537d454d79f244a0a008264f513ce2d8
  • Loading branch information
eileenmcnaughton authored and ejegg committed Apr 17, 2023
1 parent 74024da commit 989e075
Show file tree
Hide file tree
Showing 8 changed files with 767 additions and 45 deletions.
12 changes: 10 additions & 2 deletions drupal/sites/all/modules/civicrm/CRM/Core/DAO/Mapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Generated from xml/schema/CRM/Core/Mapping.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:b25f314a77515ccdcff0c3bbf8e07fd2)
* (GenCodeChecksum:89c538397697d0633134470f9e8ac880)
*/

/**
Expand All @@ -23,6 +23,13 @@ class CRM_Core_DAO_Mapping extends CRM_Core_DAO {
*/
public static $_tableName = 'civicrm_mapping';

/**
* Field to show when displaying a record.
*
* @var string
*/
public static $_labelField = 'name';

/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
Expand Down Expand Up @@ -256,7 +263,8 @@ public static function indices($localize = TRUE) {
0 => 'name',
],
'localizable' => FALSE,
'sig' => 'civicrm_mapping::0::name',
'unique' => TRUE,
'sig' => 'civicrm_mapping::1::name',
],
];
return ($localize && !empty($indices)) ? CRM_Core_DAO_AllCoreTables::multilingualize(__CLASS__, $indices) : $indices;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*
* Generated from xml/schema/CRM/Core/MappingField.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
* (GenCodeChecksum:3df2e91108cdb428e82485a6640e1721)
* (GenCodeChecksum:1648502957f4cc8a6cf10f5967833360)
*/

/**
Expand All @@ -23,6 +23,13 @@ class CRM_Core_DAO_MappingField extends CRM_Core_DAO {
*/
public static $_tableName = 'civicrm_mapping_field';

/**
* Field to show when displaying a record.
*
* @var string
*/
public static $_labelField = 'name';

/**
* Should CiviCRM log any modifications to this table in the civicrm_log table.
*
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<class>Mapping</class>
<name>civicrm_mapping</name>
<comment>Store field mappings in import or export for reuse</comment>
<labelField>name</labelField>
<add>1.2</add>
<field>
<name>id</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<class>MappingField</class>
<name>civicrm_mapping_field</name>
<comment>Individual field mappings for Mapping</comment>
<labelField>name</labelField>
<add>1.2</add>
<field>
<name>id</name>
Expand Down
Loading

0 comments on commit 989e075

Please sign in to comment.