Skip to content
This repository has been archived by the owner on Aug 22, 2019. It is now read-only.

Commit

Permalink
Merge pull request #1631 from RasaHQ/fix_interactive
Browse files Browse the repository at this point in the history
Fix form validation question
  • Loading branch information
tmbo committed Jan 25, 2019
2 parents 8a20228 + 688e6e8 commit cba58c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Changed

Fixed
-----
- fix form validation question error in interactive learninig

.. _v0-13-0:

Expand Down
4 changes: 2 additions & 2 deletions rasa_core/training/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -884,9 +884,9 @@ def _confirm_form_validation(action_name, tracker, endpoint, sender_id):
validation_questions = questionary.confirm(
"Should '{}' validate user input to fill "
"the slot '{}'?".format(action_name, requested_slot))
form_answers = _ask_or_abort(validation_questions, sender_id, endpoint)
validate_input = _ask_or_abort(validation_questions, sender_id, endpoint)

if not form_answers["validation"]:
if not validate_input:
# notify form action to skip validation
send_event(endpoint, sender_id,
{"event": "form_validation", "validate": False})
Expand Down

0 comments on commit cba58c6

Please sign in to comment.