Fix pagination of pip entry list
authorMatthias Schmidt <gravatronics@live.com>
Wed, 10 Oct 2018 15:38:21 +0000 (17:38 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 10 Oct 2018 15:38:21 +0000 (17:38 +0200)
`$startIndex` begins with `1` instead of `0`, as expected by the `getEntries()` method.

wcfsetup/install/files/acp/templates/devtoolsProjectPipEntryList.tpl

index 684f970194b9760db9e2921b89ef4c63ec4e2c1e..790f79ab7d44534d8b97607b5dbb7116d44ab244 100644 (file)
@@ -70,7 +70,7 @@
                        </thead>
                        
                        <tbody>
-                               {foreach from=$entryList->getEntries($startIndex, $itemsPerPage) key=identifier item=entry}
+                               {foreach from=$entryList->getEntries($startIndex-1, $itemsPerPage) key=identifier item=entry}
                                        <tr>
                                                <td class="columnIcon"><a href="{link controller='DevtoolsProjectPipEntryEdit' id=$project->projectID pip=$pip identifier=$identifier entryType=$entryType}{/link}" title="{lang}wcf.global.button.edit{/lang}" class="jsTooltip"><span class="icon icon16 fa-pencil"></span></a></td>
                                                {foreach from=$entryList->getKeys() key=key item=languageItem}