---
title: "Bug & Patch: kein StdWrap um select.max und select.begin"
url: "https://www.typo3.net/d/45616-bug-patch-kein-stdwrap-um-selectmax-und-selectbegin"
source: "typo3.net"
tags: ["TYPO3","TypoScript","Frage"]
created: "2006-06-29"
last_reply: "2006-06-29"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# Bug & Patch: kein StdWrap um select.max und select.begin

TYPO3 › TypoScript · 1 Antwort · gestartet 2006-06-29

## Eröffnungsbeitrag

**basti79** · 2006-06-29 · [Beitrag #1](https://www.typo3.net/d/45616-bug-patch-kein-stdwrap-um-selectmax-und-selectbegin/1)

Der Volldefekt, den hier schon einige bemerkt haben, dass man in select.max und select.begin **keine Variablen einsetzen kann**, hat mit diesem Patch ein Ende:

```php
6567c6567
<                               if ($conf['begin'] && !$conf['max'])    {
---
>                               if ($conf['begin'] && !$conf['max'] && !$conf['max.'])  {
6571,6572c6571,6572
<                               if ($conf['begin'] && $conf['max'])     {
<                                       $queryParts['LIMIT'] = $this->stdWrap($conf['begin']).','.$this->stdWrap($conf['max']);
---
>                               if (($conf['begin']||$conf['begin.']) && $conf['max'])  {
>                                       $queryParts['LIMIT'] = $this->stdWrap($conf['begin'],$conf['begin.']).','.$this->stdWrap($conf['max'],$conf['max.']);
6574c6574
<                                       $queryParts['LIMIT'] = $this->stdWrap($conf['max']);
---
>                                       $queryParts['LIMIT'] = $this->stdWrap($conf['max'],$conf['max.']);
6576a6577
>
```

anzuwenden auf typo3/sysext/cms/tslib/class.tslib_content.php

Ich bitte zufällig anwesende Devs, diesen Patch in die richtigen Wege zu leiten. Danke.

## Antworten

### [#2](https://www.typo3.net/d/45616-bug-patch-kein-stdwrap-um-selectmax-und-selectbegin/2) · just2b · 2006-06-29

einfach unter bugs.typo3.org reporten

georg
ps: thx

---

Quelle: „Bug & Patch: kein StdWrap um select.max und select.begin“, typo3.net, https://www.typo3.net/d/45616-bug-patch-kein-stdwrap-um-selectmax-und-selectbegin
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
