Commit af4c06d
[BUGFIX] Backend form selector and module must not apply frontend enable column restrictions
Forms with starttime/endtime set were invisible in both the plugin FlexForm
selector and the Powermail backend module because TYPO3's default query
restrictions and Extbase enable-field handling applied frontend visibility
rules to backend queries.
FormSelectorUserFunc::getAllForms():
Remove StartTimeRestriction and EndTimeRestriction from the QueryBuilder so
forms with a frontend visibility window remain selectable when an editor
configures a powermail content element. Hidden forms are intentionally still
filtered here (a hidden form should not be selectable in the plugin).
FormRepository::findAll() and findAllInPidAndRootline():
Add setIgnoreEnableFields(true)->setEnableFieldsToBeIgnored(['disabled',
'starttime', 'endtime']) so all forms — including hidden and time-restricted
ones — appear in the backend module overview. This allows editors to
hide/unhide and inspect forms regardless of their current frontend
visibility state.
The root cause in both cases is that starttime, endtime and hidden are
frontend visibility controls registered in TCA enablecolumns. They must not
prevent backend users from accessing or managing form records.1 parent a25123c commit af4c06d
2 files changed
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
99 | 102 | | |
100 | 103 | | |
101 | 104 | | |
| |||
108 | 111 | | |
109 | 112 | | |
110 | 113 | | |
111 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
112 | 118 | | |
113 | 119 | | |
114 | 120 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
111 | 113 | | |
112 | 114 | | |
113 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
114 | 121 | | |
115 | 122 | | |
116 | 123 | | |
| |||
0 commit comments