Changeset 24

Show
Ignore:
Timestamp:
06/13/06 01:38:50 (2 years ago)
Author:
jallen
Message:

r1060@mt-master (orig r30897): lknowland | 2006-06-12 17:29:13 -0700
Updating the error messaging for when a user tries to give a category the same name as another category at the same level. BugID:28976

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/MT/App/CMS.pm

    r21 r24  
    35363536    foreach (@siblings) { 
    35373537        next if $_->id == $obj->id; 
    3538         return $app->errtrans("No categories with the same name can have the same parent") 
     3538        return $app->errtrans("You can't have two categories with the same name at the same level.") 
    35393539            if $_->label eq $obj->label; 
    35403540    } 
     
    69106910                                        blog_id => $cat->blog_id }); 
    69116911    foreach (@siblings) { 
    6912         return $app->errtrans("No categories with the same name can have the same parent") 
     6912        return $app->errtrans("You can't have two categories with the same name at the same level.") 
    69136913            if $_->label eq $cat->label; 
    69146914    } 
     
    69566956                                                blog_id => $cat->blog_id }); 
    69576957            foreach (@siblings) { 
    6958                 return $app->errtrans("No categories with the same name can have the same parent") 
     6958                return $app->errtrans("You can't have two categories with the same name at the same level.") 
    69596959                    if $_->label eq $cat->label; 
    69606960            } 
     
    91089108                                        blog_id => $app->param('blog_id') }); 
    91099109    foreach (@siblings) { 
    9110         return $app->errtrans("No categories with the same name can have the same parent") 
     9110        return $app->errtrans("You can't have two categories with the same name at the same level.") 
    91119111            if $_->label eq $cat->label; 
    91129112    }