Fixed an issue where the user is unable to update column-level privileges from the security tab. Fixes #6117

This commit is contained in:
Rahul Shirsat
2021-02-10 17:56:26 +05:30
committed by Akshay Joshi
parent 1b850ff616
commit 2036e9d9a8
357 changed files with 4696 additions and 45 deletions

View File

@@ -503,8 +503,7 @@ define(['sources/gettext', 'underscore', 'jquery', 'backbone', 'backform',
*/
collection.each(function(m) {
m.set(
{'privilege': allPrivilege, 'with_grant': allWithGrant},
{silent: true}
{'privilege': allPrivilege, 'with_grant': allWithGrant}
);
});
} else {
@@ -539,7 +538,7 @@ define(['sources/gettext', 'underscore', 'jquery', 'backbone', 'backform',
} else if (!checked) {
$allGrants.prop('checked', false);
}
collection.get(privilege_type).set(attrs, {silent: true});
collection.get(privilege_type).set(attrs);
if (checked) {
$allPrivileges = $tbl.find(