[TYPO3-dev] enforcement of uniqueness of fields

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Wed Apr 19 15:51:32 CEST 2006


Kasper Skårhøj schrieb:
> In the old "classic backend" there was a check done which would  consult 
> the server before submitting the content. Today, the problem  is that 
> the uniqueness check is done after the content is submitted.  It is 
> therefore found acceptable to silently create a unique value  incase it 
> isn't unique when submitted. This is to avoid having to  implement that 
> the form is re-shown with all data which is especially  difficult with 
> uploaded files.
> 
> My suggestion is that with todays AJAX technology someone writes an  
> addition to TCeforms which allows to check unique fields as a part of  
> the java script evaluation which also happens on any other field  (like 
> dates, integers etc).

Whatever. I've run also into multiple times into the problem that TYPO3 
silently changes the page alias.

But a check prior to form submission may fail as TYPO3 does no table 
locking. So an AJAX check is nice, but a race condition may occur. But of 
course better a check that works 99% rather than none. So AJAX gurus, 
please step forward ;-)

Masi




More information about the TYPO3-dev mailing list