[TYPO3-dev] Problem with 'Forms on page' editing mode

Oliver Hader oh at inpublica.de
Tue Sep 25 20:58:14 CEST 2007


Hi Tapio,

Tapio Markula schrieb:
> Tapio Markula kirjoitti:
>> Hi
>>
>> I have a problem with 'Forms on page' editing mode.
>> When I try to change CType I get an alert box "This change.."
>>
>> The functionality doesn't work in the previous mentioned editing mode.
>> The user must press always "Cancel" in order to change CType.
>> I should be able to disable or fix the behavior, but I didn't find how
>> to do that.
>> I would need to disable that in my future plugin.
> 
> 
> Found the problem
> 
>     // Create a JavaScript code line which will ask the user to
> save/update the form due to changing the element. This is used for eg.
> "type" fields and others configured with "requestUpdate"
>                 if (
>                         (($TCA[$table]['ctrl']['type'] &&
> !strcmp($field,$TCA[$table]['ctrl']['type'])) ||
>                         ($TCA[$table]['ctrl']['requestUpdate'] &&
> t3lib_div::inList($TCA[$table]['ctrl']['requestUpdate'],$field)))
>                         &&
> !$BE_USER->uc['noOnChangeAlertInTypeFields'])    {
>                     $alertMsgOnChange = 'if
> (confirm('.$GLOBALS['LANG']->JScharCode($this->getLL('m_onChangeAlert')).')
> && TBE_EDITOR_checkSubmit(-1)){ TBE_EDITOR_submitForm() };';
>                 } else {$alertMsgOnChange='';}
> 
> 
> I just must disable the alert from the mode 'Forms on page' - possible
> just from this mode because I have made a class file for this mode and
> change in that file concerns only editing mode 'Forms on page'.
> I hope that this will be fixed.

I fear that I didn't understand not even half of what you wrote. Where
is the bug or what has to be changed? Could you please file a report in
the bug tracker and attach your patch in "diff -ru" format? Thanks in
advance & sorry!


olly
-- 
Oliver Hader
http://inpublica.de/




More information about the TYPO3-dev mailing list