Skip to content

Commit

Permalink
fix: fix a bug where custom phase names are ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
isc-shuliu committed Nov 4, 2024
1 parent ccdf49e commit 6c806d1
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 6c806d1

Please sign in to comment.