Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

MemberCsvBulkLoader duplicateChecks


Go to End


1195 Views

Avatar
cwchong

Community Member, 13 Posts

24 May 2013 at 7:42am

The MemberCsvBulkLoader responsible for exporting Members in the Security tab has this field

public $duplicateChecks = array('Email' => 'Email);

Shouldn't this field be changed to a static field so that it can be set in the _config.php file as well?

Currently we can use
Member::set_unique_identifier_field('MyNonEmailIdentifier');
to set the desired ID field for our Member dataobject, would be nice if MemberCsvBulkLoader maps its duplicateChecks field to the static $unique_identifier_field in Member.