|
You can use record locking to prevent simultaneous update of the
same data on the Edit page.
A locked record means it is not available for editing by other
users. On default the record locking is disabled.
To enable record locking:
1. Go to the
Security
page and click Audit trail.
2. Select the
Enable
locking check box.
3. Select a lock table. The
lock table is used to store record locks. To create new lock table,
select <Create new> in Lock table list
box and enter the table name to the text box below, for
example project1_locking.
4. Select tables to which
the record locking should be applied. You need to select the
corresponding check boxes in the Table modifications area under Record locking.
5. Click Ok.
User who tries to edit a locked record would be shown the
message that the record is locked.
Note: admin
user is able to unlock a record if it was blocked for too long or
take ownership.
If user goes to the Edit
page and then clicks Back,
it turns out that the record remains blocked. To prevent this,
automatic unlocking method is used. By default, the record will be
unlocked after 300 seconds. You can change this value by editing
the file include/locking.php:
|
var $ConfirmTime =
250;
var $UnlockTime =
300;
|
The variable $ConfirmTime determines how often the
Edit page sends confirmation that the record is still locked. The
variable $UnlockTime
determines the time (in seconds) after the last confirmation when
the record will be unlocked automatically.
|