Bug fixes: sticky delta time and dropped 1st entry.

Make the delta time interval sticky in the form where the
workflow is launched.  Also, fix a bug where the first line
of data is dropped because the statement handle was read
twice.
This commit is contained in:
Colin Kuskie 2009-02-06 20:29:56 -08:00 committed by Patrick Donelan
parent 92841f2bf5
commit aa6367d459
2 changed files with 1 additions and 2 deletions

View file

@ -110,7 +110,7 @@ sub www_editRuleflow {
); );
$f->integer( $f->integer(
name => 'pauseInterval', name => 'pauseInterval',
value => 300, value => $session->form->get('pauseInterval') || 300,
label => $i18n->get('pause interval'), label => $i18n->get('pause interval'),
hoverHelp => $i18n->get('pause interval help'), hoverHelp => $i18n->get('pause interval help'),
); );

View file

@ -101,7 +101,6 @@ sub execute {
else { else {
$sth = $session->db->read($passive); $sth = $session->db->read($passive);
my $logLine = $sth->hashRef(); my $logLine = $sth->hashRef();
$logLine = $sth->hashRef();
$lastUserId = $logLine->{userId}; $lastUserId = $logLine->{userId};
$lastSessionId = $logLine->{sessionId}; $lastSessionId = $logLine->{sessionId};
$lastTimeStamp = $logLine->{timeStamp}; $lastTimeStamp = $logLine->{timeStamp};