Project

General

Profile

Actions

Bug #56873

closed

wizard_add.php in tca record form as non-admin doesn´t work in Beta6

Added by Anonymous over 10 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-03-13
Due date:
% Done:

0%

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

Description

The wizard icon produces a blain window in tca record form as non-admin, because the wizard link is wrong. If i try this as admin or as non-admin directly in list view, this works fine.
Please fix this to keep my editor´s happy :-)

I have this in my TCA Config:

'otherthing' => array(
    'exclude' => 0,
    'label' => 'LLL:EXT:myextension/Resources/Private/Language/locallang_db.xlf:tx_myextension_domain_model_thing.otherthing',
    'config' => array(
        'type' => 'select',
        'foreign_table' => 'tx_myextension_domain_model_otherthing',
        'MM' => 'tx_myextension_thing_otherthing_mm',
        'size' => 5,
        'autoSizeMax' => 15,
        'maxitems' => 9999,
        'multiple' => 0,
        'wizards' => array(
            '_PADDING' => 1,
            '_VERTICAL' => 1,
            'edit' => array(
                'type' => 'popup',
                'title' => 'Edit',
                'script' => 'wizard_edit.php',
                'icon' => 'edit2.gif',
                'popup_onlyOpenIfSelected' => 1,
                'JSopenParams' => 'height=350,width=580,status=0,menubar=0,scrollbars=1',
                ),
            'add' => Array(
                'type' => 'script',
                'title' => 'Create new',
                'icon' => 'add.gif',
                'params' => array(
                    'table' => 'tx_myextension_domain_model_otherthing',
                    'pid' => '###CURRENT_PID###',
                    'setValue' => 'prepend'
                    ),
                'script' => 'wizard_add.php',
            ),
        ),
    ),
),

*Non-Admin (doesnt´t work):*
http://mydomain.tld/typo3/alt_doc.php?&P[fieldConfig][type]=select&P[fieldConfig][foreign_table]=tx_myextension_domain_model_otherthing&P[fieldConfig][MM]=tx_myextension_thing_otherthing_mm&P[fieldConfig][size]=5&P[fieldConfig][autoSizeMax]=15&P[fieldConfig][maxitems]=9999&P[fieldConfig][multiple]=0&P[fieldConfig][wizards][_PADDING]=1&P[fieldConfig][wizards][_VERTICAL]=1&P[fieldConfig][wizards][edit][type]=popup&P[fieldConfig][wizards][edit][title]=Edit&P[fieldConfig][wizards][edit][script]=wizard_edit.php&P[fieldConfig][wizards][edit][icon]=edit2.gif&P[fieldConfig][wizards][edit][popup_onlyOpenIfSelected]=1&P[fieldConfig][wizards][edit][JSopenParams]=height%3D350%2Cwidth%3D580%2Cstatus%3D0%2Cmenubar%3D0%2Cscrollbars%3D1&P[fieldConfig][wizards][add][type]=script&P[fieldConfig][wizards][add][title]=Create%20new&P[fieldConfig][wizards][add][icon]=add.gif&P[fieldConfig][wizards][add][params][table]=tx_myextension_domain_model_otherthing&P[fieldConfig][wizards][add][params][pid]=%23%23%23CURRENT_PID%23%23%23&P[fieldConfig][wizards][add][params][setValue]=prepend&P[fieldConfig][wizards][add][script]=wizard_add.php&P[fieldConfig][form_type]=select&P[params][table]=tx_myextension_domain_model_otherthing&P[params][pid]=%23%23%23CURRENT_PID%23%23%23&P[params][setValue]=prepend&P[exampleImg]=&P[table]=tx_myextension_domain_model_thing&P[uid]=2&P[pid]=24&P[field]=otherthing&P[flexFormPath]=&P[md5ID]=ID0fec868239&P[returnUrl]=%2Ftypo3%2Falt_doc.php%3F%26returnUrl%3Dmod.php%253FM%253Dweb_list%2526moduleToken%253D46c650dba436a16cc45a3482d59c0f10f2550a23%2526id%253D24%2526imagemode%253D1%26edit%5Btx_myextension_domain_model_thing%5D%5B2%5D%3Dedit

*Admin (work´s):*
http://mydomain.tld/typo3/alt_doc.php?returnUrl=/typo3/mod.php?M=wizard_add&moduleToken=b684271a2797e4037318a84e46db856ddbfe20f9&P[fieldConfig][type]=select&P[fieldConfig][foreign_table]=tx_myextension_domain_model_otherthing&P[fieldConfig][MM]=tx_myextension_thing_otherthing_mm&P[fieldConfig][size]=5&P[fieldConfig][autoSizeMax]=15&P[fieldConfig][maxitems]=9999&P[fieldConfig][multiple]=0&P[fieldConfig][wizards][_PADDING]=1&P[fieldConfig][wizards][_VERTICAL]=1&P[fieldConfig][wizards][edit][type]=popup&P[fieldConfig][wizards][edit][title]=Edit&P[fieldConfig][wizards][edit][script]=wizard_edit.php&P[fieldConfig][wizards][edit][icon]=edit2.gif&P[fieldConfig][wizards][edit][popup_onlyOpenIfSelected]=1&P[fieldConfig][wizards][edit][JSopenParams]=height%3D350%2Cwidth%3D580%2Cstatus%3D0%2Cmenubar%3D0%2Cscrollbars%3D1&P[fieldConfig][wizards][add][type]=script&P[fieldConfig][wizards][add][title]=Create%20new&P[fieldConfig][wizards][add][icon]=add.gif&P[fieldConfig][wizards][add][params][table]=tx_myextension_domain_model_otherthing&P[fieldConfig][wizards][add][params][pid]=%23%23%23CURRENT_PID%23%23%23&P[fieldConfig][wizards][add][params][setValue]=prepend&P[fieldConfig][wizards][add][script]=wizard_add.php&P[fieldConfig][form_type]=select&P[params][table]=tx_myextension_domain_model_otherthing&P[params][pid]=%23%23%23CURRENT_PID%23%23%23&P[params][setValue]=prepend&P[exampleImg]=&P[table]=tx_myextension_domain_model_thing&P[uid]=1&P[pid]=24&P[field]=otherthing&P[flexFormPath]=&P[md5ID]=ID7d38cf8b62&P[returnUrl]=%2Ftypo3%2Falt_doc.php%3F%26returnUrl%3Dmod.php%253FM%253Dweb_list%2526moduleToken%253D197349934045167f6d51f148c1bb94e414c7e48e%2526id%253D24%2526imagemode%253D1%26edit%5Btx_myextension_domain_model_thing%5D%5B1%5D%3Dedit&returnEditConf=1&edit[tx_myextension_domain_model_otherthing][24]=new


Files

Actions #1

Updated by Georg Ringer over 10 years ago

about which wizard are you talking? add or edit?

Actions #2

Updated by Anonymous over 10 years ago

I can reproduce this effect in both wizards (add and edit). The target popup/frame/window is always empty without any wizard.

Actions #3

Updated by Markus Klein over 10 years ago

First one obviously misses the module parameter and token.

Actions #4

Updated by Mathias Schreiber almost 10 years ago

  • Status changed from New to Needs Feedback
  • Assignee set to Mathias Schreiber

is this still the case?

Actions #5

Updated by Alexander Opitz over 9 years ago

  • Status changed from Needs Feedback to Closed
  • Assignee deleted (Mathias Schreiber)

No feedback within the last 90 days => closing this issue.

If you think that this is the wrong decision or experience this issue again, then please write to the mailing list typo3.teams.bugs with issue number and an explanation or open a new ticket and add a relation to this ticket number.

Actions

Also available in: Atom PDF