We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d7b89d7 commit 91798a5Copy full SHA for 91798a5
lib/ProductOpener/Import.pm
@@ -603,7 +603,9 @@ sub import_csv_file ($args_ref) {
603
# e.g. if an org has loaded fresh data manually or through Equadis,
604
# don't overwrite it with potentially stale CodeOnline or USDA data
605
606
- if (defined $args_ref->{source_id}) {
+ # For files uploaded through the producers platform, the source_id is org-[id of org]
607
+
608
+ if ((defined $args_ref->{source_id}) and ($args_ref->{source_id} ne "org-${org_id}")) {
609
if (not $org_ref->{"import_source_" . $args_ref->{source_id}}) {
610
$log->debug(
611
"skipping import for org without authorization for the source",
0 commit comments