Committer: gariev
LJSUP-8936: Not save status of Give button when edit postU 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'};