Skip to content

Commit

Permalink
Merge pull request #617 from intersystems/v1next-fix-custom-phase
Browse files Browse the repository at this point in the history
fix: fix a bug where custom phase names are ignored
  • Loading branch information
isc-tleavitt authored Nov 5, 2024
2 parents ccdf49e + 6c806d1 commit 60af96a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cls/IPM/Lifecycle/Base.cls
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ ClassMethod GetCompletePhasesForOne(pOnePhase As %String) As %List
/// Match single inputted phase to the correctly CamelCased lifecycle phase <br/>
ClassMethod MatchSinglePhase(pOnePhase As %String) As %String
{
set pOnePhase = $ZCONVERT(pOnePhase, "L")
Quit $Case(pOnePhase,
Set phase = $ZCONVERT(pOnePhase, "L")
Quit $Case(phase,
"clean": "Clean",
"reload": "Reload",
"validate": "Validate",
Expand All @@ -176,7 +176,7 @@ ClassMethod MatchSinglePhase(pOnePhase As %String) As %String
"publish": "Publish",
"configure": "Configure",
"unconfigure": "Unconfigure",
: ""
: pOnePhase // return the phase as-is if it's a custom phase name
)
}

Expand Down

0 comments on commit 60af96a

Please sign in to comment.