From 1f4700f9477087ef41043b8dbea1b6511611006d Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Thu, 20 Jun 2019 19:30:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E7=AE=A1=E9=95=9C=E5=83=8F=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E9=80=89=E6=8B=A9=E6=96=B0=E6=97=A7=EF=BC=8C=E9=83=BD?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E5=8F=91=E5=B8=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/managements_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/managements_controller.rb b/app/controllers/managements_controller.rb index 95fbd8b5..5382a025 100644 --- a/app/controllers/managements_controller.rb +++ b/app/controllers/managements_controller.rb @@ -358,7 +358,7 @@ class ManagementsController < ApplicationController # 用户操作的的行为需要记录 user_id, 中间层操作的行为user_id = -1 MirrorOperationRecord.create!(:mirror_repository_id => mirror.id, :mirror_id => change_id, :mirror_name => mirror.name, :status => 1, :user_id => User.current.id, :old_tag => old_id, :new_tag => change_id) else - mirror.update_attribute(:status, 0) + mirror.update_attribute(:status, 1) end respond_to do |format| format.js{ redirect_to mirror_repository_managements_path(:reaction => "choose_update_mirror")}