Project

General

Profile

Actions

Bug #4267

closed

Registration for classes that provide additional fields does not bind those classes to specific task types

Added by Ingo Renner over 15 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Must have
Category:
scheduler
Target version:
-
Start date:
2009-08-18
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Current you register a class to provide additional task editing fields like this:

$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['additionalFields'][] = 'tx_solr_scheduler_OptimizeTaskSolrServerField';

This does not bind the class to a specific task and thus the class needs to check whether it's called for the task it is meant to provide the additional fields for. This check can be saved by binding these field providers to respective tasks:

$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['additionalFields']['optimizeTask'][] = 'tx_solr_scheduler_OptimizeTaskSolrServerField';

By doing so we would move the check for additional field providers from external extensions to the scheduler where it makes more sense instead of having each field provider having to check the task. I don't think it'd be a performance issue as there're probably only a limited number of tasks available in an installation, but nevertheless it seems to be cleaner to bind the field provider to their tasks.


Files

4267.diff (8.31 KB) 4267.diff Ingo Renner, 2009-08-28 12:26
Actions

Also available in: Atom PDF