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

[livejournal] r18708: LJSUP-8346. delete combo box

Committer: gprochaev
LJSUP-8346. delete combo box

U   trunk/htdocs/admin/browse/add_category.bml
U   trunk/htdocs/admin/browse/add_community.bml
U   trunk/htdocs/admin/browse/edit_community.bml
U   trunk/htdocs/admin/browse/manage_category.bml
U   trunk/htdocs/admin/browse/remove_category.bml
U   trunk/htdocs/admin/browse/remove_community.bml
Modified: trunk/htdocs/admin/browse/add_category.bml
===================================================================
--- trunk/htdocs/admin/browse/add_category.bml	2011-03-25 02:34:47 UTC (rev 18707)
+++ trunk/htdocs/admin/browse/add_category.bml	2011-03-25 04:30:46 UTC (rev 18708)
@@ -116,7 +116,7 @@
 
     my @children = $category ? $category->children : ();
     # Get the full list of categories
-    my @categories = LJ::Browse->load_all($vertical);
+    my @categories = $vertical ? LJ::Browse->load_all($vertical) : ();
 
     $ret .= LJ::Browse->build_select_tree (0, \@categories, $category, undef, undef, 0);
     if ($category) {

Modified: trunk/htdocs/admin/browse/add_community.bml
===================================================================
--- trunk/htdocs/admin/browse/add_community.bml	2011-03-25 02:34:47 UTC (rev 18707)
+++ trunk/htdocs/admin/browse/add_community.bml	2011-03-25 04:30:46 UTC (rev 18708)
@@ -102,7 +102,7 @@
 
     my @children = $category ? $category->children : ();
     # Get the full list of categories
-    my @categories = LJ::Browse->load_all($vertical);
+    my @categories = $vertical ? LJ::Browse->load_all($vertical) : ();
 
     $ret .= LJ::Browse->build_select_tree (0, \@categories, $category, undef, undef, 0);
     if ($category) {

Modified: trunk/htdocs/admin/browse/edit_community.bml
===================================================================
--- trunk/htdocs/admin/browse/edit_community.bml	2011-03-25 02:34:47 UTC (rev 18707)
+++ trunk/htdocs/admin/browse/edit_community.bml	2011-03-25 04:30:46 UTC (rev 18708)
@@ -84,7 +84,7 @@
     if ((LJ::did_post() && $vert_[$j]) || ($LJ::DISABLED{'verticals_menu'})) {
         my @children = $cat_[$j] ? $cat_[$j]->children : ();
         # Get the full list of categories
-        my @categories = LJ::Browse->load_all($vert_[$j]);
+        my @categories = $vert_[$j] ? LJ::Browse->load_all($vert_[$j]) : ();
 
         $ret .= LJ::Browse->build_select_tree (0, \@categories, $cat_[$j], undef, undef, $i);
         if ($cat_[$j]) {

Modified: trunk/htdocs/admin/browse/manage_category.bml
===================================================================
--- trunk/htdocs/admin/browse/manage_category.bml	2011-03-25 02:34:47 UTC (rev 18707)
+++ trunk/htdocs/admin/browse/manage_category.bml	2011-03-25 04:30:46 UTC (rev 18708)
@@ -100,7 +100,7 @@
 
     my @children = $cat_[0] ? $cat_[0]->children : ();
     # Get the full list of categories
-    my @categories = LJ::Browse->load_all($vert_[0]);
+    my @categories = $vert_[0] ? LJ::Browse->load_all($vert_[0]) : ();
 
     $ret .= LJ::Browse->build_select_tree (0, \@categories, $cat_[0], undef, undef, 1);
     if ($cat_[0]) {
@@ -124,7 +124,7 @@
     if ($vert_[1]) {
         my @children = $cat_[1] ? $cat_[1]->children : ();
         # Get the full list of categories
-        my @categories = LJ::Browse->load_all($vert_[1]);
+        my @categories = $vert_[1] ? LJ::Browse->load_all($vert_[1]) : ();
 
         $ret .= LJ::Browse->build_select_tree (0, \@categories, $cat_[1], undef, undef, 2);
         if ($cat_[1]) {

Modified: trunk/htdocs/admin/browse/remove_category.bml
===================================================================
--- trunk/htdocs/admin/browse/remove_category.bml	2011-03-25 02:34:47 UTC (rev 18707)
+++ trunk/htdocs/admin/browse/remove_category.bml	2011-03-25 04:30:46 UTC (rev 18708)
@@ -99,7 +99,7 @@
 
     my @children = $category ? $category->children : ();
     # Get the full list of categories
-    my @categories = LJ::Browse->load_all($vertical);
+    my @categories = $vertical ? LJ::Browse->load_all($vertical) : ();
 
     $ret .= LJ::Browse->build_select_tree (0, \@categories, $category, undef, undef, 0);
     if ($category) {

Modified: trunk/htdocs/admin/browse/remove_community.bml
===================================================================
--- trunk/htdocs/admin/browse/remove_community.bml	2011-03-25 02:34:47 UTC (rev 18707)
+++ trunk/htdocs/admin/browse/remove_community.bml	2011-03-25 04:30:46 UTC (rev 18708)
@@ -115,7 +115,7 @@
 
     my @children = $category ? $category->children : ();
     # Get the full list of categories
-    my @categories = LJ::Browse->load_all($vertical);
+    my @categories = $vertical ? LJ::Browse->load_all($vertical) : ();
 
     $ret .= LJ::Browse->build_select_tree (0, \@categories, $category, undef, undef, 0);
     $ret .= "</table>\n";

Tags: bml, livejournal, 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