admin
admin copied to clipboard
[BUG] scope with default: true conflicts with user action with input
see another issue: https://github.com/qor/admin/issues/198
if set a scope to true, and when you update a record with (action with input) feature, if that record is not in the default scope, you can never update it.
because you can never step into for _, record := range argument.FindSelectedRecords() { when debugging, just comment out default: true, and try again.
禁用 default: true 的scope 才能在action 里成功 更新记录
这是个严重且隐藏得很深的bug, 至少调试两个下午, 升级版本、写demo 、往源码里debug、改文件名 。。。。 最后才偶然发现的
scope 的default:true 这个功能 会废掉 action with user input 这个功能