[Rt-commit] rt 01/02: Fix typo of "nonexistent"

sunnavy sunnavy at bestpractical.com
Wed Jul 21 21:39:13 UTC 2021


This is an automated email from the git hooks/post-receive script.

sunnavy pushed a commit to branch 5.0/cleanup-lifecycles
in repository rt.

commit 2aa41f3e74c934a437537f535d7c89b4f15686b2
Author: sunnavy <sunnavy at bestpractical.com>
AuthorDate: Thu Jul 22 05:30:39 2021 +0800

    Fix typo of "nonexistent"
---
 lib/RT/Lifecycle.pm | 22 +++++++++++-----------
 lib/RT/Record.pm    |  2 +-
 2 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/lib/RT/Lifecycle.pm b/lib/RT/Lifecycle.pm
index 6e6620d78c..eee78d2499 100644
--- a/lib/RT/Lifecycle.pm
+++ b/lib/RT/Lifecycle.pm
@@ -994,15 +994,15 @@ sub ValidateLifecycle {
     # ->{actions} are handled below
     for my $state ( keys %{ $lifecycle->{defaults} || {} } ) {
         my $status = $lifecycle->{defaults}{$state};
-        push @warnings, $current_user->loc( "Nonexistant status [_1] in default states in [_2] lifecycle", lc $status, $name )
+        push @warnings, $current_user->loc( "Nonexistent status [_1] in default states in [_2] lifecycle", lc $status, $name )
             unless $lifecycle->{canonical_case}{ lc $status };
     }
     for my $from ( keys %{ $lifecycle->{transitions} || {} } ) {
-        push @warnings, $current_user->loc( "Nonexistant status [_1] in transitions in [_2] lifecycle", lc $from, $name )
+        push @warnings, $current_user->loc( "Nonexistent status [_1] in transitions in [_2] lifecycle", lc $from, $name )
             unless $from eq '' || $lifecycle->{canonical_case}{ lc $from };
 
         for my $status ( @{ ( $lifecycle->{transitions}{$from} ) || [] } ) {
-            push @warnings, $current_user->loc( "Nonexistant status [_1] in transitions in [_2] lifecycle", lc $status, $name )
+            push @warnings, $current_user->loc( "Nonexistent status [_1] in transitions in [_2] lifecycle", lc $status, $name )
                 unless $lifecycle->{canonical_case}{ lc $status };
         }
     }
@@ -1013,10 +1013,10 @@ sub ValidateLifecycle {
             push @warnings, $current_user->loc( "Invalid right transition [_1] in [_2] lifecycle", $schema, $name );
             next;
         }
-        push @warnings, $current_user->loc( "Nonexistant status [_1] in right transition in [_2] lifecycle", lc $from, $name )
+        push @warnings, $current_user->loc( "Nonexistent status [_1] in right transition in [_2] lifecycle", lc $from, $name )
             unless $from eq '*'
             or $lifecycle->{canonical_case}{ lc $from };
-        push @warnings, $current_user->loc( "Nonexistant status [_1] in right transition in [_2] lifecycle", lc $to, $name )
+        push @warnings, $current_user->loc( "Nonexistent status [_1] in right transition in [_2] lifecycle", lc $to, $name )
             unless $to eq '*' || $lifecycle->{canonical_case}{ lc $to };
 
         push @warnings,
@@ -1045,10 +1045,10 @@ sub ValidateLifecycle {
             push @warnings, $current_user->loc( "Invalid action status change [_1], in [_2] lifecycle", $transition, $name );
             next;
         }
-        push @warnings, $current_user->loc( "Nonexistant status [_1] in action in [_2] lifecycle", lc $from, $name )
+        push @warnings, $current_user->loc( "Nonexistent status [_1] in action in [_2] lifecycle", lc $from, $name )
             unless $from eq '*'
             or $lifecycle->{canonical_case}{ lc $from };
-        push @warnings, $current_user->loc( "Nonexistant status [_1] in action in [_2] lifecycle", lc $to, $name )
+        push @warnings, $current_user->loc( "Nonexistent status [_1] in action in [_2] lifecycle", lc $to, $name )
             unless $to eq '*'
             or $lifecycle->{canonical_case}{ lc $to };
     }
@@ -1079,16 +1079,16 @@ sub ValidateLifecycleMaps {
             push @warnings, $current_user->loc( "Invalid lifecycle mapping [_1]", $mapname );
             next;
         }
-        push @warnings, $current_user->loc( "Nonexistant lifecycle [_1] in [_2] lifecycle map", $from, $mapname )
+        push @warnings, $current_user->loc( "Nonexistent lifecycle [_1] in [_2] lifecycle map", $from, $mapname )
             unless $LIFECYCLES_CACHE{$from};
-        push @warnings, $current_user->loc( "Nonexistant lifecycle [_1] in [_2] lifecycle map", $to, $mapname )
+        push @warnings, $current_user->loc( "Nonexistent lifecycle [_1] in [_2] lifecycle map", $to, $mapname )
             unless $LIFECYCLES_CACHE{$to};
 
         my $map = $LIFECYCLES_CACHE{'__maps__'}{$mapname};
         for my $status ( keys %{$map} ) {
-            push @warnings, $current_user->loc( "Nonexistant status [_1] in [_2] in [_3] lifecycle map", lc $status, $from, $mapname )
+            push @warnings, $current_user->loc( "Nonexistent status [_1] in [_2] in [_3] lifecycle map", lc $status, $from, $mapname )
                 if $LIFECYCLES_CACHE{$from} && !$LIFECYCLES_CACHE{$from}{canonical_case}{ lc $status };
-            push @warnings, $current_user->loc( "Nonexistant status [_1] in [_2] in [_3] lifecycle map", lc $map->{$status}, $to, $mapname )
+            push @warnings, $current_user->loc( "Nonexistent status [_1] in [_2] in [_3] lifecycle map", lc $map->{$status}, $to, $mapname )
                 if $LIFECYCLES_CACHE{$to} && !$LIFECYCLES_CACHE{$to}{canonical_case}{ lc $map->{$status} };
         }
     }
diff --git a/lib/RT/Record.pm b/lib/RT/Record.pm
index 3b6a3368cb..1f9398a2dc 100644
--- a/lib/RT/Record.pm
+++ b/lib/RT/Record.pm
@@ -1011,7 +1011,7 @@ sub _UpdateAttributes {
                                    "The new value has been set.",          # loc
                                    "No column specified",                  # loc
                                    "Immutable field",                      # loc
-                                   "Nonexistant field?",                   # loc
+                                   "Nonexistent field?",                   # loc
                                    "Invalid data",                         # loc
                                    "Couldn't find row",                    # loc
                                    "Missing a primary key?: [_1]",         # loc

-- 
To stop receiving notification emails like this one, please contact
sysadmin at bestpractical.com.


More information about the rt-commit mailing list