[TYPO3-core] RFC: #15812: Add backend maintenance for login news
Steffen Kamper
info at sk-typo3.de
Sat Sep 25 20:37:29 CEST 2010
Hi,
Ingo Renner schrieb:
>
>> * instead deleted = 0 we should use t3lib_BEfunc::deleteClause
>
> True, and in fact I had this in at first, however, deleteClause() adds
> an AND in front of the produced clause. So there are two options:
>
> 1) leave as it is: it's rather unlikely that the deleted flag will be
> removed from the table anyways. I put it in so that one could restore
> the news and it might be useful in cases where people willfully delete
> stuff.
> 2) use deleteClause() and have the where clause start with '1=1' .
> deleteClause() ... somehow didn't look that nice
>
yes, it's very uncomfortable. Imho t3lib_db should take care if where
clause starts with AND and strip it in this case. Then we can use API
straight forward without these ugly 1=1 statements
vg Steffen
More information about the TYPO3-team-core
mailing list