[TYPO3] Deleting records from the back end
lesm
nospam at please.com
Fri Jun 6 20:53:19 CEST 2008
Hi Stephen,
I never delete a record. If I don't need an old one I put it in a
Recycler for future use. The reason is that a record is never deleted
but flagged as deleted. In other words it will remain in the DB holding
a "red flag" forever and ever.
LESM
Stephen Bungert wrote:
> In my backend module I have an image of a trashcan for deleting thar record
> from the database.
>
> Why does this not work?
>
> // Check if something has been deleted
> if ($this->delCheck) {
> $changes = array(
> 'deleted' => 0,
> );
> $GLOBALS['TYPO3_DB']->UPDATEquery('tx_metri_secure_log', 'uid=' .
> $this->delCheck, $changes);
> }
>
> It doesn't change the deleted field to 1.
>
More information about the TYPO3-english
mailing list