Project

General

Profile

Bug #1573

Defect in saving logic of rights editor

Added by Stanislav Lomany over 11 years ago. Updated over 11 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
09/29/2012
Due date:
% Done:

0%

billable:
No
vendor_id:
GCD
case_num:
version:

History

#1 Updated by Stanislav Lomany over 11 years ago

Admin UI -> Access Control -> Show all
Try, say, to edit rights of "system" resource type:
1. double-click on the value in the "Rights" column of the appropriate row - rights editor dialog should appear
2. say, the "check" field value is "true"; change it to "false" and close the dialog with the upper-right cross - obviously, value is not saved
3. call the same rights editor dialog again, change the value to "false" and press the "save" button
4. call the same rights editor dialog again, change the value to "true" and close the dialog with the upper-right cross - value is SAVED.

The reason is about edit function of *RightsEditor classes. They share the same logic:

// display the dialog
dialog = AdminUtils.modalDialog(client, "Function Rights", edit);
dialog.setVisible(true);

// process the results
dialog = null;

if (!saving)
{
   return null;
}

saving attribute is not reset before the dialog is displayed

Also available in: Atom PDF