]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3462 A project dashboard that shouldn't become a global dashboard
authorDavid Gageot <david@gageot.net>
Wed, 23 May 2012 12:50:52 +0000 (14:50 +0200)
committerDavid Gageot <david@gageot.net>
Wed, 23 May 2012 12:50:52 +0000 (14:50 +0200)
sonar-server/src/main/webapp/WEB-INF/app/views/dashboards/_create.html.erb
sonar-server/src/main/webapp/WEB-INF/app/views/dashboards/_edit.html.erb

index f3e9a09e4ee26227cbfc966e62a94bfd7b9e9fe8..b8812966a0e576f334e58147482006f578fd610e 100644 (file)
@@ -28,7 +28,9 @@
     </tbody>
   </table>
 
-  <input type="hidden" name="global" value="<%= @global if @global %>" />
+  <% if @global %>
+    <input type="hidden" name="global" value="true" />
+  <% end %>
 </form>
 
 <script>
index b85d9ee9f502970438d259302df23338561da700..8ccb4e4da41b5ac49fab6a65c472925107fb7ec9 100644 (file)
@@ -28,5 +28,7 @@
     </tr>
     </tbody>
   </table>
-  <input type="hidden" name="global" value="<%= @dashboard.global -%>"/>
+  <% if @dashboard.global %>
+    <input type="hidden" name="global" value="true" />
+  <% end %>
 </form>