Committer: sbelyaev
LJSUP-10280: When user set wrong date is displayed incorrect errorU trunk/cgi-bin/ljprotocol.pl
Modified: trunk/cgi-bin/ljprotocol.pl =================================================================== --- trunk/cgi-bin/ljprotocol.pl 2011-11-07 11:26:49 UTC (rev 20486) +++ trunk/cgi-bin/ljprotocol.pl 2011-11-07 11:48:50 UTC (rev 20487) @@ -2653,6 +2653,10 @@ return fail( $err, 217 ) if $req->{itemid} || $req->{anum}; return fail( $err, 215 ) unless $req->{tz}; + # updating an entry: + return undef + unless common_event_validation($req, $err, $flags); + $req->{ext}->{flags} = $flags; $req->{ext}->{flags}->{u} = undef; # it's no need to be stored $req->{usejournal} = $req->{usejournal} || '';