[TYPO3-core] RFC: Bug #7371: Query generator does not accept dates in where condition

Michael Stucki michael at typo3.org
Mon Feb 4 01:40:32 CET 2008


Oliver Hader wrote:

> This is a SVN patch request.
> 
> Problem:
> In lowlevel / DB check / Full search, you can't set any value in the
> conditions of "date" and "datetime" fields. Every time you submit the
> form, the values are removed again.
> Additionally, the JS eval functions seem not to work.
> 
> Solution:
> SVN rev. 1899 (4.1.0) introduced the file jsfunc.tbe_editor.js and
> changed the parts in the Core that were formerly hardcoded. In
> t3lib_queryGenerator the name of the HTML form object was addressed by
> document.forms[0] and not by a real name. Introducing some required
> methods to set the name of the form over the envolved instances to
> inform the JavaScript object 'TBE_EDITOR', solves this issue.
> 
> Comments:
> Additionally, it should be mentioned that the whole module does not work
> anymore unless you fix line 633 of class.t3lib_fullsearch.php. Use type
> casting to make sure t3lib_div::_POST('SET') is an array:
> ...(array)t3lib_div::_POST('SET')...
> 
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=7371

As we just discussed: +1 after checking and also doing a code review.
Thanks a lot for taking care of it so quickly!

> Branches: TYPO3_4-1 & Trunk

If you want to commit it to the 4.1 branch, make sure to remove
the "protected" parts. However, I'm fine if this only gets fixed in 4.2.

- michael
-- 
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/


More information about the TYPO3-team-core mailing list