[Typo3-dev] TCA: itemsProcFunc plus wizard_edit.php -> window closes immediately

Christoph Hofer fiberpunk at super-fi.net
Thu Nov 10 20:14:53 CET 2005


hello!

bug or not?

i have a TCA field being processed by an itemsProcFunc ... which 
basically does a semi-sophisticated mysql-query. it works fine, data 
gets selected, updated and stored properly.

but ... the edit-wizard ceases to work in this setup. whenever i click 
the wizard icon in the backend, the window pops up and closes 
immediately. if i return to a usual "foreign_table/foreign_table_where" 
situation, it works as intended.

but why shouldn't it work with itemsProcFunc? $params['items'] is being 
filled correctly. what kind of check does the wizard_edit-script perform 
that could be responsible for this irritating behaviour?

thanks for any ideas & regards
.christoph


---- TCA field config snippet ------------------


"event" => Array (		
	"exclude" => 1,		
	"label" => 
"LLL:EXT:cyc_pilot/locallang_db.php:tx_cycpilot_articles.event",		
	"config" => Array (
		"type" => "select",
		"items" => Array (
			Array("-- TCAprocessor missing! --", "0"),
		),
		"itemsProcFunc" => 
"EXT:cyc_pilot/addons/class.tx_cycpilot_tcaprocessor.php:tx_cycpilot_tcaprocessor->articleEvents", 

		"size" => 8,	
		"minitems" => 0,
		"maxitems" => 1,	
		"wizards" => Array(
			"_PADDING" => 2,
			"_VERTICAL" => 1,
			"edit" => Array(
				"type" => "popup",
				"title" => "Edit",
				"script" => "wizard_edit.php",
				"popup_onlyOpenIfSelected" => 1,
				"icon" => "edit2.gif",
				"JSopenParams" => 
"height=350,width=580,status=0,menubar=0,scrollbars=1",
			),
		),
	)
),




More information about the TYPO3-dev mailing list