Add url to UserJob data & declare import Type on MapField screens
authorEileen McNaughton <emcnaughton@wikimedia.org>
Thu, 16 Mar 2023 04:48:46 +0000 (17:48 +1300)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Mon, 27 Mar 2023 19:52:35 +0000 (08:52 +1300)
commit2b8037052e5724858c864084123c4af0c0020f0a
tree91bc2bbc74a2bac0dae568fa44ad241ee2d89a16
parentcbf6389b8c90e624cfde5a6f1ccdbca35fea3d39
Add url to UserJob data & declare import Type on MapField screens

The DataSource screen currently declares the type so this makes it available on MapField

Minor tidy up/ standardisation on Contact defaultValues

This also allows the parent to override the values, e.g if loaded from a template

Fix BAO to support Template UserJobs

- do not save non-template fields
- delete templates on Mapping deletes

Add support for UserJob templates at the form level

Fix for strict typing
16 files changed:
CRM/Contact/Import/Form/DataSource.php
CRM/Contact/Import/Form/Preview.php
CRM/Contact/Import/Form/Summary.php
CRM/Core/BAO/UserJob.php
CRM/Custom/Import/Form/DataSource.php
CRM/Import/DataSource.php
CRM/Import/Form/DataSource.php
CRM/Import/Form/MapField.php
CRM/Import/Forms.php
CRM/Report/Form/Contact/Summary.php
ext/civiimport/civiimport.php
templates/CRM/Contact/Import/Form/Summary.tpl
templates/CRM/Import/Form/DataSource.tpl
tests/phpunit/CRM/Contact/Import/Form/MapFieldTest.php
tests/phpunit/CRM/Import/DataSource/FormsTest.php [new file with mode: 0644]
tests/phpunit/CiviTest/CiviUnitTestCase.php