Feature #16786
closedFeUsers in table sys_lockedrecords
0%
Description
Because there are some Plugins enabled to let FeUser edit Records (e.g. news-entries) it would be great to have record_locking for FeUser also.
I attach a patch, which
a) adds field feuserid to table sys_lockedrecords
b) adds text-variant for fe-users to locallang_core.xml
c) modifies t3lib_befunc->isRecordLocked to show different messages when be or fe-users locked a record.
(issue imported from #M4655)
Files
Updated by Stefan Geith almost 18 years ago
Should I attach also a patch with an additional function for TSFE, where you can set entries to sys_lockedrecords - like t3lib_befunc->lockRecords ?
Updated by Oliver Hader over 17 years ago
Yes, could you please attach the patch to lock records via TSFE?
If we provide that new field on the sys_lockedrecords table, it would be great to have a method in the FE-API to lock/unlock the record.
Thanks in advance!
Updated by Stefan Geith over 17 years ago
I modified the patch an added also 3 function to class.tslib_fe.php that enable lock, unlock and check for isRecordLocked also in FE via $TSFE.
Updated by Stefan Geith almost 17 years ago
I have attached a new patch 'feature-004655.patch' for this feature-request.
2 Things changed:
- If no username is available in the lock-file '-unknown-' will be used (defined in locallang_core:labels.unknownUser)
- The text 'The user '%s' began to edit ...' is now changet to 'The BE-User ...', if a BE-User locked the reocrd; to 'The FE-User ...', if a FE-User locked the record; if it can't be examined, the text remains 'The User ...'
Updated by Stefan Geith almost 17 years ago
Sorry, forgot to change tslib_fe ...
Please use patch 'feature-004655-with-fe.patch'.
Updated by Stefan Geith almost 17 years ago
I uploaded a Test-Plugin, that checks the patch:
T3X_sgtest_syslockedrecords_fe-0_0_0-z-200801111312.t3x
Place this plugin on a page and you can lock / unlock / test records.
Notes:
- Naturally it only works, if your are logged in to the FE !
- Open some content-elements in the BE (!) and let them open (!!)
- In FE: Enter tt_content and the UID of the content-elements that you just opend in the BE and click on 'check if record is locked' and see the ruslts
- In FE: Enter tt_content and the UID of a content-element and click on 'lock record' and check in the BE, if exclamation-mark ist set on these records.
- In FE: log in as ANOTHER user and check the same record: should be locked (if you check as the SAME FeUser, then you will not get a 'locked'-Message)
Updated by Stefan Geith almost 17 years ago
I changed the patch a little to make check of locked records easier in FE:
0004655c-sys_lockedrecords+feuserid+TSFE.patch
T3X_sgtest_syslockedrecords_fe-0_1_0-z-200801181401.t3x
Test-Instruction: see Note of previous entry.
Updated by Stefan Geith almost 17 years ago
I added two new BT-Entries with separate patches for BE and TSFE:
http://bugs.typo3.org/view.php?id=7571
http://bugs.typo3.org/view.php?id=7572
Now this Entry can be closed.
Updated by Ingo Renner over 16 years ago
As this feature did not get enough +1s on the core list and would require another beta to get tested I'm removing it from the 4.2 roadmap as I do not plan to release another beta.