diff --git a/services/core-web/src/components/mine/Projects/ProjectSummary.tsx b/services/core-web/src/components/mine/Projects/ProjectSummary.tsx index 82b8ecb358..1ba06c20ec 100644 --- a/services/core-web/src/components/mine/Projects/ProjectSummary.tsx +++ b/services/core-web/src/components/mine/Projects/ProjectSummary.tsx @@ -6,7 +6,6 @@ import * as routes from "@/constants/routes"; import { Button, Col, Row, Tag } from "antd"; import EnvironmentOutlined from "@ant-design/icons/EnvironmentOutlined"; import ArrowLeftOutlined from "@ant-design/icons/ArrowLeftOutlined"; -import { getSystemFlag } from "@mds/common/redux/selectors/authenticationSelectors"; import { getFormattedProjectSummary, @@ -19,6 +18,7 @@ import { AMS_STATUS_CODES_SUCCESS, AMS_STATUS_CODE_FAIL, AMS_ENVIRONMENTAL_MANAGEMENT_ACT_TYPES, + SystemFlagEnum, } from "@mds/common"; import { getMineById } from "@mds/common/redux/reducers/mineReducer"; import withFeatureFlag from "@mds/common/providers/featureFlags/withFeatureFlag"; @@ -37,6 +37,7 @@ import ProjectSummaryForm, { } from "@mds/common/components/projectSummary/ProjectSummaryForm"; import { fetchRegions } from "@mds/common/redux/slices/regionsSlice"; import { clearProjectSummary } from "@mds/common/redux/actions/projectActions"; +import { getSystemFlag } from "@mds/common/redux/selectors/authenticationSelectors"; export const ProjectSummary: FC = () => { const dispatch = useDispatch(); @@ -50,6 +51,9 @@ export const ProjectSummary: FC = () => { mode: string; }>(); + const systemFlag = useSelector(getSystemFlag); + const isCore = systemFlag === SystemFlagEnum.core; + const mine = useSelector((state) => getMineById(state, mineGuid)); const formattedProjectSummary = useSelector(getFormattedProjectSummary); const project = useSelector(getProject); @@ -80,7 +84,6 @@ export const ProjectSummary: FC = () => { const activeTab = tab ?? projectFormTabs[0]; const mineName = mine?.mine_name ?? formattedProjectSummary?.mine_name ?? ""; const formValues = useSelector(getFormValues(FORM.ADD_EDIT_PROJECT_SUMMARY)); - const systemFlag = useSelector(getSystemFlag); const handleFetchData = async () => { setIsLoaded(false); @@ -208,13 +211,17 @@ export const ProjectSummary: FC = () => { if (!status_code || isNewProject) { status_code = "DFT"; } else if (!newActiveTab) { - status_code = "SUB"; + if (isCore) { + status_code = formValues.status_code; + } else { + status_code = "SUB"; + } is_historic = false; if (amsFeatureEnabled) { message = null; } } - const values = { ...formValues, status_code: status_code }; + const values = { ...formValues, status_code }; try { if (isNewProject) { diff --git a/services/database/postgres/Dockerfile b/services/database/postgres/Dockerfile index 930cee32b3..c21475ca54 100644 --- a/services/database/postgres/Dockerfile +++ b/services/database/postgres/Dockerfile @@ -1,4 +1,4 @@ -FROM postgis/postgis:13-3.0 +FROM postgis/postgis:13-3.4 RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install -y --no-install-recommends \ make \ diff --git a/services/postgres/Dockerfile b/services/postgres/Dockerfile index 093fce83a4..93943dd92f 100644 --- a/services/postgres/Dockerfile +++ b/services/postgres/Dockerfile @@ -1,4 +1,4 @@ -FROM postgis/postgis:13-3.0 +FROM postgis/postgis:13-3.4 # The Git ref (branch/tag) specifying the version of oracle-fdw to use # This is referencing a specific revision (master as of 2021.06.01)