Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[livejournal] r19194: LJSUP-8936: Not save status of Give butt...

Committer: gariev
LJSUP-8936: Not save status of Give button when edit post

U   trunk/cgi-bin/ljprotocol.pl
Modified: trunk/cgi-bin/ljprotocol.pl
===================================================================
--- trunk/cgi-bin/ljprotocol.pl	2011-06-02 03:16:03 UTC (rev 19193)
+++ trunk/cgi-bin/ljprotocol.pl	2011-06-02 03:53:15 UTC (rev 19194)
@@ -2434,13 +2434,10 @@
     my %curprops;
     LJ::load_log_props2($dbcm, $ownerid, [ $itemid ], \%curprops);
 
-    ## handle meta-data (properties)
-    my %props_byname = ();
-    foreach my $key (keys %{$req->{'props'}}) {
-        ## changing to something else?
-        if ($curprops{$itemid}->{$key} ne $req->{'props'}->{$key}) {
-            $props_byname{$key} = $req->{'props'}->{$key};
-        }
+    ## give features
+    my $give_features = $req->{'props'}->{'give_features'};
+    if ($give_features) {
+        $req->{'props'}->{'give_features'} = ($give_features eq 'enable') ? 1 : 0;
     }
 
     my $event = $req->{'event'};

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