317
318
auto name = current_dep_id == "" ? all_dept_name : impl->depts_db->get_department_name(current_dep_id, locales);
318
319
unity::scopes::Department::SPtr current = unity::scopes::Department::create(current_dep_id, query(), name);
320
323
// attach subdepartments to it
321
324
for (auto const& subdep: impl->depts_db->get_children_departments(current_dep_id))