- Timestamp:
- Feb 10, 2011, 1:04:32 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/dbnp/query/AdvancedQueryController.groovy
r1501 r1512 4 4 import org.dbnp.gdt.* 5 5 6 // TODO: Make use of the searchable-plugin possibilities instead of querying the database directly6 // TODO: Make use of the searchable-plugin or Lucene possibilities instead of querying the database directly 7 7 8 8 /** … … 113 113 redirect( action: "index" ); 114 114 return; 115 } 116 117 // Attach all objects to the current hibernate thread, because the 118 // object might be attached to an old thread, since the results are 119 // saved in session 120 s.getResults().each { 121 it.attach(); 115 122 } 116 123 … … 613 620 if( json[ s.entity ] ) { 614 621 json[ s.entity ].each { action -> 615 def url = module.url + "/action/" + action.name 616 url += "?entity=" + s.entity 622 def url = action.url ?: module.url + "/action/" + action.name 623 624 if( url.find( /\?/ ) ) 625 url += "&" 626 else 627 url += "?" 628 629 url += "entity=" + s.entity 617 630 url += "&" + s.filterResults(selectedIds).collect { "tokens=" + it.giveUUID() }.join( "&" ) 618 631 actions << [
Note: See TracChangeset
for help on using the changeset viewer.