Skip to content

Commit

Permalink
Merge pull request #1374 from mozzy11/develop
Browse files Browse the repository at this point in the history
filter lab  units by user roles on the activity
  • Loading branch information
mozzy11 authored Jan 8, 2025
2 parents 015d4aa + 1dfb007 commit 3386e5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 216 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/reports/common/ReportByDate.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import "../../Style.css";
import { AlertDialog } from "../../common/CustomNotification";
import CustomDatePicker from "../../common/CustomDatePicker";
import config from "../../../config.json";
import { encodeDate } from "../../utils/Utils";
import { encodeDate, Roles } from "../../utils/Utils";
import { getFromOpenElisServer } from "../../utils/Utils";
const ReportByDate = (props) => {
const intl = useIntl();
Expand Down Expand Up @@ -122,7 +122,7 @@ const ReportByDate = (props) => {
getFromOpenElisServer("/rest/panels", setTempData);
break;
case "activityReportByTestSection":
getFromOpenElisServer("/rest/test-sections", setTempData);
getFromOpenElisServer("/rest/user-test-sections/"+ Roles.REPORTS, setTempData);
break;
default:
break;
Expand Down
214 changes: 0 additions & 214 deletions frontend/src/components/reports/routine/ActivityReport.js

This file was deleted.

0 comments on commit 3386e5f

Please sign in to comment.