5261: When redirecting during an AJAX request, send the target URI in
[arvados.git] / apps / workbench / app / controllers / collections_controller.rb
index 3ef46887d82c24a2edc2e5e6778b1a1fd20769e9..e883017070d20ccdc7613e8f6c88ea9acaf1930e 100644 (file)
@@ -266,6 +266,15 @@ class CollectionsController < ApplicationController
     sharing_popup
   end
 
+  def update
+    @updates ||= params[@object.resource_param_name.to_sym]
+    if @updates && (@updates.keys - ["name", "description"]).empty?
+      # exclude manifest_text since only name or description is being updated
+      @object.manifest_text = nil
+    end
+    super
+  end
+
   protected
 
   def find_usable_token(token_list)