Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.

Remove strange getNodeTypes method from NodeController #190

Closed
ahonor opened this issue Aug 9, 2012 · 0 comments
Closed

Remove strange getNodeTypes method from NodeController #190

ahonor opened this issue Aug 9, 2012 · 0 comments
Assignees
Labels
Milestone

Comments

@ahonor
Copy link
Contributor

ahonor commented Aug 9, 2012

Remove the following:


    def getNodeTypes(){
        def response = []
        List origList = Topic.executeQuery( "select  new map(T.id as id, T.topicName as topicName) from Topic T");
        List delList = PostTopics.executeQuery( "select  new map(T.id as id, T.topicName as topicName) from Topic T left join T.posts P where P.post.id=?",[params.id.toLong()]);
        List addList = origList - delList

        //List origList = NodeType.findAll()

        response = [dellist:dellist,addlist:addlist];
        render response as JSON
    }

Similar to #187

See #169

@ghost ghost assigned ahonor Aug 9, 2012
@ahonor ahonor closed this as completed Aug 9, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant