apache / apache/grails-core

Error f:all ignors editable: false on renderAssociationInput in method renderDefaultInput

Open
#14,253 1 comment 0 reactions 0 assignees View on GitHub
relates-to: grails-fields
Dominant language
Groovy
Stars
2.9k
Forks
975
Avg merge
1d 22h
Merged PRs (30d)
92

Description

[editableIgnoreOnRenderAssociationInput.zip](https://github.com/grails-fields-plugin/grails-fields/files/1058208/editableIgnoreOnRenderAssociationInput.zip)
grailsVersion=3.1.4
fields: 2.1.5

In the dynamically scaffolded domain class 'TestConstraint'

```
package editableignoreonrenderassociationinput

class TestConstraints {
String dontBeEditable
SelectObjects dontBeEditableEither

static constraints = {
dontBeEditable editable: false
dontBeEditableEither nullable: true, editable: false
}
}

```

the select field 'dontBeEditableEither' with the constraint 'editable: false'
is still editable in edit and create view.
The text field 'dontBeEditable' isn't editable as expected.

bildschirmfoto 2017-06-07 um 15 39 10

Contributor guide

Open the contributing guide

Research direction

Use the attached reproduction with Grails 3.1.4 and fields 2.1.5 as the starting point. Inspect renderAssociationInput and renderDefaultInput, comparing the association field with the text field when editable: false is set. Done means dontBeEditableEither is no longer editable in the dynamically scaffolded create and edit views.

Written by the indexing model from the issue text.

Assessment

Tech stack
groovy
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.