Bug #16627
closedtask center (sys_action) in "record list" view shows "set fileds" by default
0%
Description
I do not know if it is desired but task center (sys_action) in "record list" view shows "set fileds" by default.
I think "Task center" should be as simple as possible so by default "set fileds" should be hidden (as it is in normal "WEB->List ")
To hide "set fileds":
typo3\sysext\sys_action\class.tx_sysaction.php
line 211
THERE IS:
return htmlspecialchars($this->headLInk('tx_taskcenterrootlist', 1)). '<br />'. $this->urlInIframe($this->backPath."db_list.php?id=".intval($actionRow["t3_listPid"])."&table=".$actionRow["t3_tables"],1);
AND SHOULD BE:
return htmlspecialchars($this->headLInk('tx_taskcenterrootlist', 1)). '<br />'. $this->urlInIframe($this->backPath."db_list.php?id=".intval($actionRow["t3_listPid"]),1);
(issue imported from #M4346)
Updated by Krystian Szymukowicz about 18 years ago
Forget that ulgy path above.
It works but only if you have one table at page. If there is more tables then all tabels are displayed which can be more confusing to user than "set filelds".
So this bug is rather a feature request to hide "set filelds" per page basis. It can be achieved by new Web>List (mod.web_list) property. For example:
noSetFields
so if we set in PageTS
mod.web_list.noSetFields = 1
and then patch the db_list.php at line 381 with:
if (!$this->modTSconfig['properties']['noSetFields']) {
if ($dblist->table) {
$this->content.=$dblist->fieldSelectBox($dblist->table);
}
}
Updated by Krystian Szymukowicz over 16 years ago
The solution is not to select table type in action definition (leave it empty)...
and btw in 4.3 "Web->List" is going to be rebuild so there is no need to take care of that.