Commit 83bb22f
committed
Fix toggle switches not being saved on modern MikoPBX
Fomantic's form('get values') no longer serializes toggle checkboxes
reliably (unchecked toggles are omitted from the payload), so the
is_post / is_1c switches were never persisted. Read each checkbox state
explicitly in cbBeforeSendForm and send it as '1'/'0', mirroring
ModuleLdapSync, and accept both 'on' and '1' in the save controller.1 parent 29da027 commit 83bb22f
3 files changed
Lines changed: 29 additions & 2 deletions
File tree
- App/Controllers
- public/assets/js
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
45 | 59 | | |
46 | 60 | | |
47 | 61 | | |
| |||
0 commit comments