071 tests fixes

This commit is contained in:
2026-08-12 11:34:27 +03:00
parent ed4d0b050a
commit 255ce141d9
5 changed files with 61 additions and 34 deletions
+4
View File
@@ -1,3 +1,4 @@
<!--- v0.05 2026-08-12--->
<cfparam name="nStart" type="integer" default="1"/>
<cfparam name="ATTRIBUTES.recordCount" type="integer"/>
@@ -9,6 +10,9 @@
<cfparam name="ATTRIBUTES.output" type="string" default="paginator"/>
<!--- Исключение: рассчитанный индекс страницы превышает количество существующих страниц - надо возвращаться на первую --->
<cfif NOT (ATTRIBUTES.recordsPerPage GT 0)>
<cfexit method="exittag"/>
</cfif>
<cfset nPages = Int((ATTRIBUTES.recordCount-1)/ATTRIBUTES.recordsPerPage)+1/>
<cfset nCurrentPage = Int((nStart-1)/ATTRIBUTES.recordsPerPage)+1/>