Skip to content

[3.1.0] Chain method broken - model is not available in GSP but it exists under flash.chainModel #9626

@droggo

Description

@droggo

Using very simple example, based on documentation, we have created controller:

class ChainTestController {
    def one() {
        chain action: 'two', model: [name: 'Tony', town: 'Birmingham']
    }
    def two() {
        [name: 'Anthony', country: 'England']
    }
}

and GSP

A ${name} B ${town} C ${country}

The result of opening
http://localhost:8080/chainTest/two

shows:
A Anthony B C England
instead of
A Anthony B Birmingham C England

If flash.chainModel is used in GSP, variable is available there.

Project with controller and view to reproduce this is under https://github.com/droggo/ChainError

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions