Bug #2693
closedWhen creating a new rule, display edit parameters tab
Description
when creating a rule, we want to set its parameters, so instead of displaying compliance tab we should display edit parameters tab
Updated by Vincent MEMBRÉ about 12 years ago
- Status changed from New to Pending technical review
- % Done changed from 0 to 100
Applied in changeset 01bbc25552bba832d712c07ee1628799ce266ace.
Updated by Nicolas CHARLES about 12 years ago
- Status changed from Pending technical review to Discussion
- % Done changed from 100 to 80
Vincent, I have two questions about this one :
- Why did you declare some "implicit" in you method definition ? Implicit is used to fetch values from the scope ( http://daily-scala.blogspot.fr/2010/04/implicit-parameters.html ), but I don't see why it is used here (simply the tab:Int = 0 whould be sufficient)
- In Replace("editRuleZone", this.showForm(1) ), why did you replace the htmlId by a string ? I feel there must be something tricky that I don't get
Thank you
Updated by Vincent MEMBRÉ about 12 years ago
- Why did you declare some "implicit" in you method definition ? Implicit is used to fetch values from the scope ( http://daily-scala.blogspot.fr/2010/04/implicit-parameters.html ), but I don't see why it is used here (simply the tab:Int = 0 whould be sufficient)
You are right, i did what you suggest, but i made a mistake when calling my function later (forgot parenthesis ...), i removed the implicit and fix everything
- In Replace("editRuleZone", this.showForm(1) ), why did you replace the htmlId by a string ? I feel there must be something tricky that I don't get
the target of replace has changed with the detail tab, I just add the raw id, i created a val for that id
Thank you !
Updated by Vincent MEMBRÉ about 12 years ago
- Status changed from Discussion to Pending technical review
- % Done changed from 80 to 100
Applied in changeset ddfe701e6a300b84a9ff14c53ba2ed455423d911.
Updated by Nicolas CHARLES about 12 years ago
- Status changed from Pending technical review to Released
This looks correct, thank you Vincent