This project is archived. Its data is read-only.

汉化后报错ActionView::Template::Error (undefined method `zh_name' for #<Gitlab::Git::Commit:0x00007f660ffadbc0>

@xhang Dear xhang: 12.3.6 (82ff748612c)使用gitlab-12-3-stable-zh的汉化包配置后,点击提交详情页面(如:https://192.168.12.172:4433/tools/test/commit/a819ea6191c0fa36963414604e4638007b4b4dd3),显示500异常。提示@note.noteable缺少zh_name方法

/var/log/gitlab/gitlab-rails/production.log中显示如下错误: Started GET "/tools/test/commit/a819ea6191c0fa36963414604e4638007b4b4dd3" for 10.168.106.172 at 2019-11-20 19:04:14 +0800 Processing by Projects::CommitController#show as HTML Parameters: {"namespace_id"=>"tools", "project_id"=>"test", "id"=>"a819ea6191c0fa36963414604e4638007b4b4dd3"} Completed 500 Internal Server Error in 328ms (ActiveRecord: 32.1ms | Elasticsearch: 0.0ms)

ActionView::Template::Error (undefined method `zh_name' for #Gitlab::Git::Commit:0x00007f660ffadbc0): 1: - noteable_name = @note.noteable.zh_name 2:
3: .float-left.btn-group.append-right-10.droplab-dropdown.comment-type-dropdown.js-comment-type-dropdown 4: %input.btn.btn-nr.btn-success.js-comment-button.js-comment-submit-button{ type: 'submit', value: _('Comment') }

app/models/commit.rb:286:in `method_missing'

LOG截图: err

Assignee Loading
Time tracking Loading