gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[taler-anastasis] 05/06: fix country selection


From: gnunet
Subject: [taler-anastasis] 05/06: fix country selection
Date: Tue, 15 Sep 2020 19:28:21 +0200

This is an automated email from the git hooks/post-receive script.

dennis-neufeld pushed a commit to branch master
in repository anastasis.

commit 5f1deaf071b8422edc7c6d0f1f092bd5e14712ba
Author: Dennis Neufeld <dennis.neufeld@students.bfh.ch>
AuthorDate: Tue Sep 15 18:50:05 2020 +0200

    fix country selection
---
 src/lib/anastasis_api_backup_redux.c | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/src/lib/anastasis_api_backup_redux.c 
b/src/lib/anastasis_api_backup_redux.c
index d6cefb4..65455fb 100644
--- a/src/lib/anastasis_api_backup_redux.c
+++ b/src/lib/anastasis_api_backup_redux.c
@@ -262,7 +262,7 @@ select_country (const json_t *state,
 {
   json_t *new_state;
   json_t *root;
-  json_t *country = json_object_get (arguments, "country");
+  json_t *country = json_object_get (arguments, "country_code");
 
   if (NULL == state)
   {
@@ -279,7 +279,7 @@ select_country (const json_t *state,
         NULL);
   }
   if (GNUNET_SYSERR ==
-      redux_countries_init (json_string_value (country)))
+      redux_id_attr_init (json_string_value (country)))
   {
     GNUNET_break (0);
     return NULL;
@@ -298,13 +298,14 @@ select_country (const json_t *state,
                    "backup-state",
                    json_string ("ReduxCountrySelectedState"));
 
-  json_object_set_new (new_state,
-                       "required_attributes",
-                       redux_id_attr);
-  // optional:
   json_object_set_new (new_state,
                        "selected_country",
                        country);
+
+  json_object_set_new (new_state,
+                       "required_attributes",
+                       root);
+
   cb (cb_cls,
       ANASTASIS_EC_NONE,
       new_state);

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]