Changeset 4095

Show
Ignore:
Timestamp:
Wed Nov 16 15:24:39 2005
Author:
mugur
Message:

fixed ticket:1479 - Add Section requires you to specify URL Name & error msg is wrong

Files:

Legend:

Unmodified
Added
Removed
Modified
  • trunk/campsite/implementation/management/priv/lang/en/sections.php

    r3953 r4095  
    8 8 regGS("You do not have the right to add sections.", "You do not have the right to add sections.");  
    9 9 regGS("The section $1 has been successfuly added.", "The section $1 has been successfuly added.");  
    10   regGS("Please check if another section with the same number does not already exist.", "Please check if another section with the same number does not already exist.");  
      10 regGS("Please check if another section with the same number or URL name does not exist already.", "Please check if another section with the same number or URL name does not exist already.");  
    10 10 regGS("Select the section", "Select the section");  
    11 11 regGS("Section $1 added to issue $2. $3 ($4) of $5", "Section $1 added to issue $2. $3 ($4) of $5");  
    41 41 regGS("Select destination section:", "Select destination section:");  
    42 42 regGS("OR", "OR");  
    43   regGS("Short Name", "Short Name");  
      43 regGS("URL Name", "URL Name");  
    43 43 regGS("The section number specified already exists, please specify a different value or use the dropdown to find an existing section.", "The section number specified already exists, please specify a different value or use the dropdown to find an existing section.");  
    44 44 regGS("Warning", "Warning");  
  • trunk/campsite/implementation/management/priv/sections/do_add.php

    r4085 r4095  
    54 54 if ($cShortName == "") {  
    55 55     $correct = false;  
    56       $errors[] = getGS('You must complete the $1 field.','"'.getGS('Short Name').'"');  
      56     $errors[] = getGS('You must complete the $1 field.','"'.getGS('URL Name').'"');  
    56 56 }  
    57   if (!$isValidShortName) {  
      57 if (!$isValidShortName && trim($cShortName) != "") {  
    57 57     $correct = false;  
    58       $errors[] = getGS('The $1 field may only contain letters, digits and underscore (_) character.', '"' . getGS('Short Name') . '"');  
      58     $errors[] = getGS('The $1 field may only contain letters, digits and underscore (_) character.', '"' . getGS('URL Name') . '"');  
    58 58 }  
    59 59 if ($correct) {  
    110 110         if ($correct != 0) { ?>  
    111 111             <LI><?php  putGS('The section could not be added.'); ?></LI>  
    112               <LI><?php  putGS('Please check if another section with the same number does not already exist.'); ?></LI>  
      112             <LI><?php  putGS('Please check if another section with the same number or URL name does not exist already.'); ?></LI>  
    112 112             <?php   
    113 113         }  
  • trunk/campsite/implementation/management/priv/sections/add.php

    r4085 r4095  
    58 58     <TD ALIGN="RIGHT" ><?php  putGS("URL Name"); ?>:</TD>  
    59 59     <TD>  
    60       <INPUT TYPE="TEXT" class="input_text" NAME="cShortName" SIZE="32" MAXLENGTH="32">  
      60     <INPUT TYPE="TEXT" class="input_text" NAME="cShortName" SIZE="32" MAXLENGTH="32" VALUE="<?php  p($newSectionNumber); ?>">  
    60 60     </TD>  
    61 61 </TR>