This repository was archived by the owner on Apr 21, 2026. It is now read-only.
Commit a1478bb
fix: Display categories and tags on blog edit form
The edit() action used var-scoped variables passed as extra renderView
named args, which is non-standard in Wheels. Views access data through
the controller's variables scope, but var-scoped variables are local to
the function. Refactored edit() to match the create() pattern: removed
var from blog, categories, postTypes so they are set in controller scope,
and use renderView(template="create") without extra args. Also added
val() to arrayFind comparison to prevent type mismatch between query
iteration types when marking selected categories.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 46dfe91 commit a1478bb
2 files changed
Lines changed: 7 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| |||
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | | - | |
222 | 221 | | |
223 | | - | |
224 | | - | |
| 222 | + | |
| 223 | + | |
225 | 224 | | |
226 | 225 | | |
227 | 226 | | |
228 | 227 | | |
229 | 228 | | |
230 | 229 | | |
231 | | - | |
| 230 | + | |
232 | 231 | | |
233 | 232 | | |
234 | 233 | | |
| |||
239 | 238 | | |
240 | 239 | | |
241 | 240 | | |
| 241 | + | |
242 | 242 | | |
243 | | - | |
244 | | - | |
| 243 | + | |
245 | 244 | | |
246 | 245 | | |
247 | 246 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
0 commit comments