Commit 6be5ad8f authored by Claes Sjofors's avatar Claes Sjofors

User database provider bugfix

parent 619a6327
...@@ -167,10 +167,8 @@ void rt_pvd_udb::load_systemgroup(SystemList* systemgroup) ...@@ -167,10 +167,8 @@ void rt_pvd_udb::load_systemgroup(SystemList* systemgroup)
strcpy(item.name, sname); strcpy(item.name, sname);
gu->get_system_data(sname, &body->Attributes, &item.oix, body->Description); gu->get_system_data(sname, &body->Attributes, &item.oix, body->Description);
item.oix++; item.oix = next_oix++;
if (next_oix <= item.oix)
next_oix = item.oix + 1;
item.cid = pwr_cClass_SystemGroupReg; item.cid = pwr_cClass_SystemGroupReg;
item.fthoix = menu_stack[menu_cnt - 1]; item.fthoix = menu_stack[menu_cnt - 1];
item.bwsoix = m_list[item.fthoix].lchoix; item.bwsoix = m_list[item.fthoix].lchoix;
...@@ -211,10 +209,7 @@ void rt_pvd_udb::load_user(UserList* user, SystemList* sg) ...@@ -211,10 +209,7 @@ void rt_pvd_udb::load_user(UserList* user, SystemList* sg)
body = (pwr_sClass_UserReg*)calloc(1, sizeof(pwr_sClass_UserReg)); body = (pwr_sClass_UserReg*)calloc(1, sizeof(pwr_sClass_UserReg));
user->get_data(body->Password, &body->Privileges, &item.oix, body->FullName, user->get_data(body->Password, &body->Privileges, &item.oix, body->FullName,
body->Description, body->Email, body->Phone, body->Sms); body->Description, body->Email, body->Phone, body->Sms);
item.oix++; item.oix = next_oix++;
if (next_oix <= item.oix)
next_oix = item.oix + 1;
item.cid = pwr_cClass_UserReg; item.cid = pwr_cClass_UserReg;
item.fthoix = menu_stack[menu_cnt - 1]; item.fthoix = menu_stack[menu_cnt - 1];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment