fix finding the control to add a note

This commit is contained in:
Romain Bignon 2014-03-30 12:41:57 +02:00
commit ce4c9f7d84

View file

@ -340,7 +340,10 @@ class NewIssuePage(BaseIssuePage):
#XXX: else set to "" ?
def set_note(self, message):
self.browser['notes'] = message.encode('utf-8')
try:
self.browser['notes'] = message.encode('utf-8')
except ClientForm.ControlNotFoundError:
self.browser['issue[notes]'] = message.encode('utf-8')
def set_fields(self, fields):
for key, div in self.iter_custom_fields():