[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.
- [taler-anastasis] branch master updated (aa001ce -> 5e3ee12), gnunet, 2020/09/15
- [taler-anastasis] 01/06: fix include, gnunet, 2020/09/15
- [taler-anastasis] 04/06: add select country, gnunet, 2020/09/15
- [taler-anastasis] 02/06: worked on select country, gnunet, 2020/09/15
- [taler-anastasis] 03/06: fixed json array loop, gnunet, 2020/09/15
- [taler-anastasis] 06/06: Merge branch 'master' of ssh://git.taler.net/anastasis into master, gnunet, 2020/09/15
- [taler-anastasis] 05/06: fix country selection,
gnunet <=