Skip to content

Commit

Permalink
Don't override field config, get a copy.
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasmassmann committed Feb 8, 2018
1 parent 33e8ead commit f0fb19a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pkan/dcatapde/browser/content_views/harvester.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
from pkan.dcatapde.vocabularies.dcat_field import DcatFieldVocabulary
from Products.Five import BrowserView

import copy


class HarvesterOverview(BrowserView):

Expand Down Expand Up @@ -88,7 +90,7 @@ def __call__(self, *args, **kwargs):
for ct in used_cts:
if ct in CT_FIELD_RELATION:
field = CT_FIELD_RELATION[ct]
lines = getattr(self.context, field, [])
lines = copy.deepcopy(getattr(self.context, field, []))
utils.set_request_annotations('pkan.vocabularies.context',
self.context)

Expand Down

0 comments on commit f0fb19a

Please sign in to comment.