|
@@ -403,7 +403,7 @@ end;
|
|
|
|
|
|
function TProjectData.GetBaseDataReadOnly: Boolean;
|
|
|
begin
|
|
|
- if FProjProperties.PhaseCount = 0 then
|
|
|
+ if (FProjProperties.PhaseCount = 0) then
|
|
|
Result := False
|
|
|
else
|
|
|
Result := not AllowInsert;
|
|
@@ -411,7 +411,9 @@ end;
|
|
|
|
|
|
function TProjectData.GetAllowInsert: Boolean;
|
|
|
begin
|
|
|
- if FPhaseData.Active then
|
|
|
+ if IsHistoryPhase then
|
|
|
+ Result := False
|
|
|
+ else if FPhaseData.Active then
|
|
|
Result := FPhaseData.AllowInsert
|
|
|
else
|
|
|
Result := True;
|
|
@@ -1840,7 +1842,7 @@ end;
|
|
|
|
|
|
function TProjectData.GetStageDataReadOnly: Boolean;
|
|
|
begin
|
|
|
- if FPhaseData.Active then
|
|
|
+ if FPhaseData.Active and not IsHistoryPhase then
|
|
|
Result := FPhaseData.StageDataReadOnly
|
|
|
else
|
|
|
Result := True;
|