aboutsummaryrefslogtreecommitdiffstats
path: root/www/js/models/report.js
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2013-04-26 15:09:04 +0100
committerStruan Donald <struan@exo.org.uk>2013-04-26 15:17:48 +0100
commit2484ff1157ef840c781585c91f01d4eef392a449 (patch)
tree273b6463e2819a16da23493d71dac3efc6ee6bd5 /www/js/models/report.js
parent18e46f5c67fdcda946582a09879b912402055e74 (diff)
if signed in and confirming name then actually use confirmed details
Diffstat (limited to 'www/js/models/report.js')
-rw-r--r--www/js/models/report.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/www/js/models/report.js b/www/js/models/report.js
index 8dba8de..529a6d8 100644
--- a/www/js/models/report.js
+++ b/www/js/models/report.js
@@ -64,9 +64,9 @@
pc: model.get('pc'),
may_show_name: model.get('may_show_name'),
used_map: 1,
- name: model.get('user').get('name'),
- email: model.get('user').get('email'),
- phone: model.get('user').get('phone')
+ name: model.get('name') || model.get('user').get('name'),
+ email: model.get('email') || model.get('user').get('email'),
+ phone: model.get('phone')
};
if ( model.get('submit_clicked') == 'submit_sign_in' ) {