[openstreetmap/openstreetmap-website] Mention error message in OAuth setup for iD (#1830)

mmd notifications at github.com
Wed Apr 25 16:35:05 UTC 2018


Mapping a non existing ID_KEY to a blank value would show the following error popup when starting iD:

![grafik](https://user-images.githubusercontent.com/5842757/39259636-37e207ea-48b7-11e8-93a5-5dd25864820e.png)


```ruby
diff --git a/app/views/site/_id.html.erb b/app/views/site/_id.html.erb
index 867b148..57a8967 100644
--- a/app/views/site/_id.html.erb
+++ b/app/views/site/_id.html.erb
@@ -1,7 +1,7 @@
 <%= javascript_include_tag "edit/id" %>
 
 <div id="map">
-  <% data = { :key => ID_KEY } -%>
+  <% data = { :key => defined?(ID_KEY) ? ID_KEY : "" } -%>
   <% data[:lat] = @lat if @lat -%>
   <% data[:lon] = @lon if @lon -%>
   <% data[:gpx] = trace_data_url(params[:gpx], :format => :xml) if params[:gpx] -%>


```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/1830#issuecomment-384351381
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20180425/fb19bf27/attachment.html>


More information about the rails-dev mailing list