myexperiment-hackers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myexperiment-hackers] [3275] trunk/app/controllers/application_controll


From: noreply
Subject: [myexperiment-hackers] [3275] trunk/app/controllers/application_controller.rb: fix for uploading using the "Default" layout
Date: Mon, 17 Dec 2012 15:21:37 +0000 (UTC)

Revision
3275
Author
dgc
Date
2012-12-17 15:21:36 +0000 (Mon, 17 Dec 2012)

Log Message

fix for uploading using the "Default" layout

Modified Paths

Diff

Modified: trunk/app/controllers/application_controller.rb (3274 => 3275)


--- trunk/app/controllers/application_controller.rb	2012-12-14 16:57:08 UTC (rev 3274)
+++ trunk/app/controllers/application_controller.rb	2012-12-17 15:21:36 UTC (rev 3275)
@@ -1004,7 +1004,7 @@
 
   #Applies the layout for the Network with the given network_id to the object (contributable)
   def update_layout(object,network_id)
-    if network_id.blank?
+    if network_id.blank? || network_id == "Default"
       object.contribution.layout = nil
       object.contribution.save
     else

reply via email to

[Prev in Thread] Current Thread [Next in Thread]