Project

General

Profile

Actions

Bug #32212

closed

select.pidInList = 0 won't select records with pid = 0

Added by Soeren Kracker over 12 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
TypoScript
Target version:
-
Start date:
2011-11-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.6
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Following Typoscript:

10 = CONTENT
10 {
    table = static_countries
    select {
        pidInList = 0
        orderBy = cn_short_en
    }
    renderObj {
        field = cn_short_en
    }
}

It won't get any records because of this code (pidInList will be unset):
if (!$conf[$property]) {
    unset($conf[$property]);
}

Maybe we can change it to:
if (!$conf[$property] && $conf[$property] != 0) {
    unset($conf[$property]);
}

Don't know if this is the right solution or has any side effects though.


Files

32212.diff (466 Bytes) 32212.diff Described change as diff file Soeren Kracker, 2011-11-30 15:37
32212.diff (467 Bytes) 32212.diff updated version Soeren Kracker, 2011-11-30 15:49

Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #31209: CONTENT still can't select records from rootpageClosed2011-10-24

Actions
Actions #1

Updated by Soeren Kracker over 12 years ago

Attached my described change in typo3_src/typo3/sysext/cms/tslib/class.tslib_content.php

I'm new to bug reports. Hope the diff file is set up correctly.

Actions #2

Updated by Soeren Kracker over 12 years ago

hm, of course !== 0 ;)

edit: a bit too hasty. The problem lies in function stdWrap.
Maybe we could save the initial value of $conf[$property] and compare later on (before unset) if it has been 0.

Actions #3

Updated by Ernesto Baschny about 12 years ago

  • Status changed from New to Resolved

Resolved with the same fix already merged in #32374.

Actions #4

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF