[LON-CAPA-cvs] cvs: loncom /interface loncreateuser.pm

raeburn raeburn@source.lon-capa.org
Sat, 14 Mar 2009 13:30:09 -0000


raeburn		Sat Mar 14 13:30:09 2009 EDT

  Modified files:              
    /loncom/interface	loncreateuser.pm 
  Log:
  Personal Data entry: 
  - permanentemail field: hidden item replaces textbox for users creating account with e-mail address as username.
  
  
Index: loncom/interface/loncreateuser.pm
diff -u loncom/interface/loncreateuser.pm:1.286 loncom/interface/loncreateuser.pm:1.287
--- loncom/interface/loncreateuser.pm:1.286	Mon Mar  9 05:25:40 2009
+++ loncom/interface/loncreateuser.pm	Sat Mar 14 13:30:09 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Create a user
 #
-# $Id: loncreateuser.pm,v 1.286 2009/03/09 05:25:40 raeburn Exp $
+# $Id: loncreateuser.pm,v 1.287 2009/03/14 13:30:09 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1591,11 +1591,15 @@
                 }
             } else {
                 if ($context eq 'selfcreate') {
-                    if ($canmodify{$item}) {
-                        $row .= '<input type="text" name="c'.$item.'" size="'.$textboxsize{$item}.'" value="" />';
-                        $editable ++;
+                    if (($item eq 'permanentemail') && ($newuser eq 'email')) {
+                        $row .= $ccuname;
                     } else {
-                        $hiderow = 1;
+                        if ($canmodify{$item}) {
+                            $row .= '<input type="text" name="c'.$item.'" size="'.$textboxsize{$item}.'" value="" />';
+                            $editable ++;
+                        } else {
+                            $hiderow = 1;
+                        }
                     }
                 } else {
                     $row .= '<input type="text" name="c'.$item.'" size="'.$textboxsize{$item}.'" value="" />';