wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[ljcom] r8421: LJSUP-5665

Committer: gprochaev
LJSUP-5665

Return operation with old userpic items

U   trunk/htdocs/admin/accounts/acctedit.bml
Modified: trunk/htdocs/admin/accounts/acctedit.bml
===================================================================
--- trunk/htdocs/admin/accounts/acctedit.bml	2010-04-02 04:43:37 UTC (rev 8420)
+++ trunk/htdocs/admin/accounts/acctedit.bml	2010-04-02 07:14:17 UTC (rev 8421)
@@ -372,7 +372,7 @@
         $daysleft += 0;
 
         if ($flag_span)  {
-			$ret .= "<td rowspan='2'>";
+			$ret .= "<td rowspan='3'>";
 	        if (defined $bit) {
 	            $ret .= LJ::html_check({ 'type' => 'check', 'name' => "cap_${bit}_set",
 	                                     'id' => "cap_${bit}_set", 'value' => 1,
@@ -423,7 +423,7 @@
         next unless ref $bitem eq 'HASH';
 
         my $bit = $bitem->{'cap'};
-        next if $itemname =~ /^userpic/; # extra userpics
+#        next if $itemname =~ /^userpic/; # extra userpics
 
         my $has_cap = $u->{'caps'} & 1 << $bit || 0;
         my $name = $ML{$bitem->{'name'}};
@@ -431,15 +431,17 @@
         $bit ||= '&nbsp;';
         $ret .= "<tr><td align='middle'>$bit</td><td><label for='cap_${bit}_set'>$name</label></td>";
 
-        $ret .= "<td>";
-        if (defined $bit) {
-            $ret .= LJ::html_check({ 'type' => 'check', 'name' => "cap_${bit}_set",
-                                     'id' => "cap_${bit}_set", 'value' => 1,
-                                     'selected' => $has_cap });
-        } else {
-            $ret .= "&nbsp;";
+        unless ($itemname =~ /^userpic/) {
+            $ret .= "<td>";
+            if (defined $bit) {
+                $ret .= LJ::html_check({ 'type' => 'check', 'name' => "cap_${bit}_set",
+                                         'id' => "cap_${bit}_set", 'value' => 1,
+                                         'selected' => $has_cap });
+            } else {
+                $ret .= "&nbsp;";
+            }
+            $ret .= "</td>";
         }
-        $ret .= "</td>";
 
         my $rec_set = 0;
         if ($rec) {

Tags: bml, ljcom, wisest-owl
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments