Skip to content

Commit

Permalink
Read message on return of gw_fct_setfields
Browse files Browse the repository at this point in the history
  • Loading branch information
xtorret committed Sep 19, 2020
1 parent 9672a49 commit e84effa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions actions/api_cf.py
Original file line number Diff line number Diff line change
Expand Up @@ -915,8 +915,9 @@ def accept(self, dialog, complet_result, feature_id, _json, p_widget=None, clear
result = json.loads(row[0], object_pairs_hook=OrderedDict)

if "Accepted" in result['status']:
msg = "OK"
self.controller.show_message(msg, message_level=3)
level = result['message']['level']
msg = result['message']['text']
self.controller.show_message(msg, message_level=level)
self.reload_fields(dialog, row, p_widget)
elif "Failed" in result['status']:
msg = "FAIL"
Expand Down

0 comments on commit e84effa

Please sign in to comment.