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

raeburn raeburn at source.lon-capa.org
Sat May 31 11:55:18 EDT 2014


raeburn		Sat May 31 15:55:18 2014 EDT

  Modified files:              
    /loncom/interface	loncreateuser.pm 
  Log:
  - Special handling of permanentemail field in personal data display
    not now needed for self-creation of accounts, where e-mail is username
    as permanentemail is no longer an included field.
  
  
Index: loncom/interface/loncreateuser.pm
diff -u loncom/interface/loncreateuser.pm:1.400 loncom/interface/loncreateuser.pm:1.401
--- loncom/interface/loncreateuser.pm:1.400	Mon Apr 28 22:20:13 2014
+++ loncom/interface/loncreateuser.pm	Sat May 31 15:55:18 2014
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Create a user
 #
-# $Id: loncreateuser.pm,v 1.400 2014/04/28 22:20:13 raeburn Exp $
+# $Id: loncreateuser.pm,v 1.401 2014/05/31 15:55:18 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2282,19 +2282,15 @@
                 }
             } else {
                 if ($context eq 'selfcreate') {
-                    if (($item eq 'permanentemail') && ($newuser eq 'email')) {
-                        $row .= $ccuname;
-                    } else {
-                        if ($canmodify{$item}) {
-                            if ($newuser eq 'email') {
-                                $row .= '<input type="text" name="'.$item.'" size="'.$textboxsize{$item}.'" value="" autocomplete="off" />';
-                            } else {
-                                $row .= '<input type="text" name="c'.$item.'" size="'.$textboxsize{$item}.'" value="" autocomplete="off" />';
-                            }
-                            $editable ++;
+                    if ($canmodify{$item}) {
+                        if ($newuser eq 'email') {
+                            $row .= '<input type="text" name="'.$item.'" size="'.$textboxsize{$item}.'" value="" autocomplete="off" />';
                         } else {
-                            $hiderow = 1;
+                            $row .= '<input type="text" name="c'.$item.'" size="'.$textboxsize{$item}.'" value="" autocomplete="off" />';
                         }
+                        $editable ++;
+                    } else {
+                        $hiderow = 1;
                     }
                 } else {
                     $row .= '<input type="text" name="c'.$item.'" size="'.$textboxsize{$item}.'" value="" />';




More information about the LON-CAPA-cvs mailing list