Notices on import - consolidate mapping variables
authorEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 6 Apr 2022 19:59:04 +0000 (07:59 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Wed, 6 Apr 2022 19:59:04 +0000 (07:59 +1200)
commit262b7f26e20604be56f0c9e7d92c1027b9c7a8ff
treee27d49fef63d2150ff96d2c3cff6a2b92ccbbcce
parent85dba8e27d3ec8f5fbea1cc7e8a5cdacaa5f25ca
Notices on import - consolidate mapping variables

This consolidates 2 variables mappingName and loadedMapping into
one (savedMappingName) - loadedMapping is only ever used as
a boolean so presence or otherwise of savedMappingName is enough.

This addresses enotices and simplifies the code
15 files changed:
CRM/Activity/Import/Form/MapField.php
CRM/Activity/Import/Form/Preview.php
CRM/Contact/Import/Form/Preview.php
CRM/Contribute/Import/Form/Preview.php
CRM/Custom/Import/Form/Preview.php
CRM/Event/Import/Form/MapField.php
CRM/Event/Import/Form/Preview.php
CRM/Import/Form/MapField.php
CRM/Member/Import/Form/MapField.php
CRM/Member/Import/Form/Preview.php
templates/CRM/Activity/Import/Form/MapTable.tpl
templates/CRM/Contact/Import/Form/MapTable.tpl
templates/CRM/Contribute/Import/Form/MapTable.tpl
templates/CRM/Event/Import/Form/MapTable.tpl
templates/CRM/Member/Import/Form/MapTable.tpl