Commits

Benoît Allard committed 2babc0f

UI: be less picky about the form we want to fill

  • Participants
  • Parent commits 86b97ef

Comments (0)

Files changed (1)

File galileo/ui.py

                         goodForm = form
                 if goodForm:
                     break
+            if goodForm is None:
+                # Not found, search again, less picky
+                for form in fe.forms:
+                    for field in form:
+                        if field in answer and form[field] is None and answer[field] is not None:
+                            goodForm = form
+                    if goodForm:
+                        break
         if goodForm is None:
             return []
         # Transfer the answers from the config to the form