[TYPO3-core] RFC: Feature #7571: FeUsers in table sys_lockedrecords

Stefan Geith typo3dev2008.nospam1 at geithware.de
Mon Feb 18 12:07:16 CET 2008


Hi,

to make the goal of this patch clearer:

If you want to edit e.g. a news-entry in the BE and this record is already opend by 
another BE-User, then you get this yellow exclamation mark that tells you
'The user brzlbrmpf began to edit this record 7 minutes ago.'

But if you want to edit this record while a Fe-User in the FRONTEND (e.g. with the 
help of sg_newsplus) has this record open for editing, then you don't get any 
informations. Also the FeUser who is editing doesn't see, if there is another User 
(in FE or BE) who is already editing this record.

This patch enabled sys_lockedrecords to contain a FeUser-ID _or_ a BeUser-ID, that 
locked the record. The BE-Function that generates the message now differentiates 
FeUser from BeUsers. The BeUser can now get a message e.g. 'The FeUser Sepp.Maier 
began to edit this record ...'.

Naturally this requires the Fe-User-Editing capable extension (like e.g. sg_newsplus) 
to lock/unlock records in sys_lockedrecords.
The patch in 7572 contains 3 functions for TSFE, that makes this easier to implement.

-
Stefan


Stefan Geith schrieb:
> This is an SVN patch request.
> 
> Type: New feature (already requested as 4655)
> 
> Bugtracker references:
>   http://bugs.typo3.org/view.php?id=7571
>   (http://bugs.typo3.org/view.php?id=7572)
>   and
>   old: http://bugs.typo3.org/view.php?id=4655
> 
> Branches:
>   4.2, Trunk
> 
> Problem:
>   Manage locked records also for Fe-User Editing
> 
> Solution:
>   a) adds field feuserid to mysql-table sys_lockedrecords
>   b) adds text-variant for fe-users to locallang_core.xml
>      (Text should no longer be 'The user xxx began to edit ...' - we now
>      must use 'The BeUser ...' or 'The FeUser ...'
>   c) modifies t3lib_befunc->isRecordLocked to show different
>      messages when BE or FE-users locked a record.
> 
> Notes:
>   This Request (together with 7572) replaces BT 4655.
>   I already use this in 4.1 with my extensions based on
>   library sg_zfelib.
>   A patch for class.tslib_fe.php is available separately
>   as BT-Entry 7572 (http://bugs.typo3.org/view.php?id=7572)
> 
> 


More information about the TYPO3-team-core mailing list