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

[livejournal] r18642: LJSUP-8269. 'Editing search tags' tool s...

Committer: gprochaev
LJSUP-8269. 'Editing search tags' tool still not functioning properly

U   trunk/cgi-bin/LJ/Widget/Search.pm
U   trunk/htdocs/admin/browse/search_tags.bml
Modified: trunk/cgi-bin/LJ/Widget/Search.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/Search.pm	2011-03-21 05:06:39 UTC (rev 18641)
+++ trunk/cgi-bin/LJ/Widget/Search.pm	2011-03-21 06:26:25 UTC (rev 18642)
@@ -83,7 +83,7 @@
         my $system = LJ::load_user('system') or die "No 'system' user in DB";
         my $keywords = $system->prop('vertical_search');
 
-        my @words = split /\$/, $keywords;
+        my @words = split '\$', $keywords;
         @words = grep { my ($id) = $_ =~ m/(.*?)#/; $id == $vertical->vert_id } @words;
         my ($stored_words) = $words[0] =~ m/.*?#(.*)/s;
 

Modified: trunk/htdocs/admin/browse/search_tags.bml
===================================================================
--- trunk/htdocs/admin/browse/search_tags.bml	2011-03-21 05:06:39 UTC (rev 18641)
+++ trunk/htdocs/admin/browse/search_tags.bml	2011-03-21 06:26:25 UTC (rev 18642)
@@ -61,7 +61,7 @@
             my @post_keywords = split /\s*\n+\s*/m, $POST{words};
             $stored_words = join("\n", @post_keywords); # update this value, it will be used below
             my $keywords = $system->prop('vertical_search');
-            my @words = split ":", $keywords;
+            my @words = split '\$', $keywords;
 
             my $flag = 0;
             foreach my $v_w (@words) {
@@ -71,11 +71,12 @@
                     $flag = 1;
                 }
             }
+
             unless ($flag) {
                 push @words, $vert_id . "#" . $stored_words;
             }
 
-            my $to_prop = join "\$", @words;
+            my $to_prop = join '$', @words;
             $system->set_prop('vertical_search', $to_prop);
         }
 

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