Skip to content

Commit

Permalink
Always clear existing contact info coming from the MLS, if override i…
Browse files Browse the repository at this point in the history
…s enabled.
  • Loading branch information
Thomas Massmann committed Mar 9, 2015
1 parent c9923bf commit e62d585
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/ps/plone/mls/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,12 @@ def contains_nuts(value):
def merge_local_contact_info(settings=None, mapping=None, data=None):
"""Merges values of locally provided contact info."""
keys_internal = [
'clear',
'force',
'use_custom_info',
]

if settings.get('clear', False) is True:
data.clear()
# Clear any existing data.
data.clear()

for key, value in settings.items():
if key in keys_internal:
Expand Down

0 comments on commit e62d585

Please sign in to comment.