Project

General

Profile

Actions

Feature #16786

closed

FeUsers in table sys_lockedrecords

Added by Stefan Geith almost 18 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2006-12-14
Due date:
% Done:

0%

Estimated time:
PHP Version:
4.3
Tags:
Complexity:
Sprint Focus:

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


Related issues 2 (0 open2 closed)

Related to TYPO3 Core - Feature #18238: FeUsers in table sys_lockedrecordsClosedOliver Hader2008-02-18

Actions
Related to TYPO3 Core - Feature #18239: FeUsers in table sys_lockedrecords - TSFE-PartClosed2008-02-18

Actions
Actions #1

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 ?

Actions #2

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!

Actions #3

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.

Actions #4

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 ...'

Actions #5

Updated by Stefan Geith almost 17 years ago

Sorry, forgot to change tslib_fe ...

Please use patch 'feature-004655-with-fe.patch'.

Actions #6

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)

Actions #7

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.

Actions #8

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.

Actions #9

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.

Actions #10

Updated by Chris topher over 14 years ago

Closed as requested, will be dealt with in #18238 and #18238.

Actions

Also available in: Atom PDF