[TYPO3-core] RFC #17150: Workspaces non-admin user cannot send to next stage

Susanne Moog typo3 at susannemoog.de
Thu Jan 20 10:51:40 CET 2011


On 20.01.2011 01:58, Helmut Hummel wrote:
> Hi,
> 
> On 19.01.11 21:46, Sonja Scholz wrote:
>> -881» » »
>> if·($workspaceRec['custom_stages']·>·0·&&·$stage·!==·'0'·&&·$stage·!==·'-10')·{
>>
>> +882» » »
>> if·($workspaceRec['custom_stages']·>·0·&&·$stage·!==·0·&&·$stage·!==·'-10')·{
> 
> Was this done by intention? Is $stage an integer or a string?

yes this was intentionally. At the moment $stage is given to the
function sometimes as a string, sometimes as an integer, while it should
be an integer always. For now the function is doing an intval on $stage
but it's on my todo list to change all the calls to ensure it's always
used as integer (it's documented to be an integer).

Thanks for paying attention ;)

Susanne

-- 
What's worth the price is always worth the fight
Every second counts 'cause there's no second try

TYPO3 Core Team Member


More information about the TYPO3-team-core mailing list