[TYPO3-core] RFC: Bug #4951: SQL error when editing BE User
Michael Stucki
mstucki at snowflake.ch
Fri Feb 16 15:22:49 CET 2007
Hi Olivier,
> Michael Stucki wrote:
> > This is a SVN patch request.
> >
> > + if ($TCA[$table]['ctrl']['versioningWS']) {
> > + $pid_list_tmp = preg_replace('/^\-1,/','',$pid_list_tmp);
> > + }
>
> Hm, shouldn't it be "if (!$TCA[$table]['ctrl']['versioningWS'])"?
> If workspaces are not allowed for the table the "-1" isn't as well.
Ouch! Of course you are right. I'll change my patch right away. See fixed
version attached.
Btw. for those who cannot reproduce the problem: You can test it by calling
debug after each of these calls and opening
Tools -> DB check -> Record statistics
- michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug_4951.diff
Type: text/x-diff
Size: 1036 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20070216/fb620dfc/attachment-0001.bin
More information about the TYPO3-team-core
mailing list