- process.set_owners(self.conn, self.form_data.get_all_int('step_of'))
- if new_process_title:
- title_b64_encoded = b64encode(new_process_title.encode()).decode()
+ owners_to_set = []
+ new_owner_title = None
+ for owner_identifier in self.form_data.get_all_str('step_of'):
+ try:
+ owners_to_set += [int(owner_identifier)]
+ except ValueError:
+ new_owner_title = owner_identifier
+ process.set_owners(self.conn, owners_to_set)
+ params = f'id={process.id_}'
+ if new_step_title:
+ title_b64_encoded = b64encode(new_step_title.encode()).decode()