1.1 --- a/imipweb/event.py Sat Apr 04 21:20:12 2015 +0200
1.2 +++ b/imipweb/event.py Sat Apr 04 22:16:11 2015 +0200
1.3 @@ -582,12 +582,13 @@
1.4
1.5 # Obtain details of existing attendees.
1.6
1.7 + existing = value in existing_attendees
1.8 attr = attendee_map.get(value)
1.9 partstat = attr and attr.get("PARTSTAT")
1.10
1.11 # Show a form control as organiser for new attendees.
1.12
1.13 - if is_organiser and not partstat:
1.14 + if is_organiser and not existing:
1.15 page.input(name="attendee", type="value", value=value, size="40")
1.16 else:
1.17 page.input(name="attendee", type="hidden", value=value)
1.18 @@ -615,7 +616,7 @@
1.19
1.20 # Permit the removal of newly-added attendees.
1.21
1.22 - remove_type = (value in existing_attendees and value != self.user) and "checkbox" or "submit"
1.23 + remove_type = (existing and value != self.user) and "checkbox" or "submit"
1.24
1.25 self._control("remove", remove_type, value, value in args.get("remove", []), id="remove-%d" % i, class_="remove")
1.26