Revision: 5932
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=5932&view=rev
Author:   dnaber
Date:     2011-11-18 23:51:55 +0000 (Fri, 18 Nov 2011)
Log Message:
-----------
fix parameter parsing

Modified Paths:
--------------
    
trunk/ltcommunity/grails-app/controllers/org/languagetool/CorpusMatchController.groovy

Modified: 
trunk/ltcommunity/grails-app/controllers/org/languagetool/CorpusMatchController.groovy
===================================================================
--- 
trunk/ltcommunity/grails-app/controllers/org/languagetool/CorpusMatchController.groovy
      2011-11-18 23:46:41 UTC (rev 5931)
+++ 
trunk/ltcommunity/grails-app/controllers/org/languagetool/CorpusMatchController.groovy
      2011-11-18 23:51:55 UTC (rev 5932)
@@ -67,8 +67,8 @@
         }
         eq('languageCode', langCode)
         eq('isVisible', true)
-        firstResult(params.offset)
-        maxResults(params.max)
+        firstResult(params.int('offset'))
+        maxResults(params.int('max'))
       }
       int totalMatches = CorpusMatch.countByLanguageCodeAndIsVisible(langCode, 
true)
       [ corpusMatchList: matches,

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Languagetool-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs

Reply via email to