Support forums

Please check @brandnewbox_uk for support status updates.

Search     Advanced Search
Caught an issue with MSM and fields that have the same name across sites  
Posted: 17 October 2019 04:41 AM —  
Newbie
Rank
Total Posts:  1
Joined  2015-08-27

I have fixed the issue locally but I’m hoping you can put this into the upstream code because it’s likely to be an issue for other people too!

CURRENTLY, lines 1344-1346 of models/datagrab_model.php look like this:

$field = ee('Model')->get('ChannelField')
        ->search('field_name', $unique[0])
        ->first();

We need to add a filter for the current site, as follows:

$field = ee('Model')->get('ChannelField')
        ->filter('site_id', ee()->config->item('site_id'))
        ->search('field_name', $unique[0])
        ->first();

 

Profile
 

‹‹ Use url_title to check for duplicates

Select A Theme