--- a/app/controllers/enumerations_controller.rb	2010-10-19 15:25:39.202264228 +0200
+++ b/app/controllers/enumerations_controller.rb	2010-10-19 15:25:34.182267531 +0200
@@ -44,6 +44,10 @@
   end
 
   def create
+    if params[:enumeration][:project_id].length != 0
+      # disallow is_default if project-specific
+      params[:enumeration][:is_default] = 0
+    end
     @enumeration = Enumeration.new(params[:enumeration])
     @enumeration.type = params[:enumeration][:type]
     if @enumeration.save
@@ -59,6 +63,10 @@
   end
 
   def update
+    if params[:enumeration][:project_id].length != 0
+      # disallow is_default if project-specific
+      params[:enumeration][:is_default] = 0
+    end
     @enumeration = Enumeration.find(params[:id])
     @enumeration.type = params[:enumeration][:type] if params[:enumeration][:type]
     if @enumeration.update_attributes(params[:enumeration])
