Fix an issue where the save button was not getting enable when user revoke ADMIN option from Role privileges.

Issue: validation callback was missing in the control model.

Fixes #1302
This commit is contained in:
Murtuza Zabuawala 2016-06-20 13:20:51 +01:00 committed by Dave Page
parent 237f93591f
commit 1a84c35628
2 changed files with 6 additions and 3 deletions

View File

@ -709,7 +709,7 @@ rolmembership:{
_("Could not generate reversed engineered Query for the role.")
)
return ajax_response(response=res)
return ajax_response(response=res.strip('\n'))
@check_precondition(action='create')
@validate_request
@ -823,7 +823,7 @@ rolmembership:{
data=self.request,
dummy=True,
conn=self.conn
)
).strip('\n')
)
else:
return make_json_response(
@ -837,7 +837,7 @@ rolmembership:{
rolCatUpdate=self.rolCatUpdate,
rolSuper=self.rolSuper,
alterKeys=self.alterKeys
)
).strip('\n')
)
@check_precondition()

View File

@ -465,6 +465,9 @@ function($, _, S, pgAdmin, pgBrowser, alertify, Backform) {
defaults: {
role: undefined,
admin: false
},
validate: function() {
return null;
}
}),
filter: function(d) {