Skip to content

Commit

Permalink
Merge 1c4512d into 181f548
Browse files Browse the repository at this point in the history
  • Loading branch information
fredvd committed Sep 4, 2015
2 parents 181f548 + 1c4512d commit d048a1b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGES.rst
Expand Up @@ -6,6 +6,9 @@ There's a frood who really knows where his towel is.
1.0a12 (unreleased)
^^^^^^^^^^^^^^^^^^^

- Fix textlinessortable widget for IE11 where IE11 mangles multiform POST data. This fixes removing items from the Caroussel compose widget in IE11.
[fredvd]

- Create format options for datetime widget (closes `#534`_).
[rodfersou]

Expand Down
6 changes: 6 additions & 0 deletions src/collective/cover/tests/test_textlinessortable_widget.py
Expand Up @@ -151,6 +151,12 @@ def test_extract(self):

self.assertDictEqual(extracted_value, expected)

# Test with weird line separators \n\n in IE11 for the uuids
self.request.set(name, u'\n\n'.join(uuids))

extracted_value = widget.extract()
self.assertDictEqual(extracted_value, expected)

def test_utf8_custom_data(self):
obj = self.portal['my-image']
obj.setDescription('áéíóú')
Expand Down
2 changes: 1 addition & 1 deletion src/collective/cover/widgets/textlinessortable.py
Expand Up @@ -136,7 +136,7 @@ def extract(self):
portal_properties = api.portal.get_tool(name='portal_properties')
use_view_action = portal_properties.site_properties.getProperty(
'typesUseViewActionInListings', ())
values = self.request.get(self.name).split('\r\n')
values = self.request.get(self.name).splitlines()
uuids = [i for i in values if i]
results = dict()
for index, uuid in enumerate(uuids):
Expand Down

0 comments on commit d048a1b

Please sign in to comment.