Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon1.gif   Feature request - fairly urgent also :), posted by nickc1 on Fri May 2 10:32:57 2003 
    icon2.gif   Re: Feature request - fairly urgent also :), posted by Stefan Ritt on Fri May 2 10:39:51 2003 
       icon2.gif   Re: Feature request - fairly urgent also :), posted by nickc1 on Fri May 2 11:05:28 2003 
    icon2.gif   Re: Feature request - fairly urgent also :), posted by Stefan Ritt on Mon May 12 22:47:10 2003 
       icon2.gif   Re: Feature request - fairly urgent also :), posted by nickc1 on Wed May 14 18:18:31 2003 
          icon2.gif   Re: Feature request - fairly urgent also :), posted by Stefan Ritt on Wed May 14 20:07:54 2003 
Message ID: 336     Entry time: Mon May 12 22:47:10 2003     In reply to: 309     Reply to this: 338
Icon: Reply  Author: Stefan Ritt  Author Email: stefan.ritt@psi.ch 
Category: Request  OS:   ELOG Version:  
Subject: Re: Feature request - fairly urgent also :) 
> We are using elog as a small database system, today we came across a 
> problem where 2 people were editing the same record and the first one to 
> submit his changes were overwritten when the second person submitted his.
> 
> Is there anyway to lock a logbook record when someone has pressed EDIT, 
> maybe set a flag in the logbook entry so it has to be unlocked when its 
> submitted by the originator or by an administrator.

I added some code experimentally to avoid double editing. Whenever a message 
is edited, a "stop" sign is displayed in the message list next to the edited 
messages and a warning is issued on the single message display page. If the 
original editing has been given up (browser closed) one can just ignore this 
message. I prefer this solution in comparision with a real locking, since 
the mechanisms for unlocking a stale message by the administrator is not 
necessary. Get the newest code from CVS, get also themes/default/stop.gif to 
display the stop sign, and let me know what you think.
ELOG V3.1.5-fe60aaf