Skip to content

Commit

Permalink
Merge pull request #12 from FACT-Finder/release
Browse files Browse the repository at this point in the history
Release 2.5.6
  • Loading branch information
Rudi committed Mar 24, 2015
2 parents 84a92b7 + a859f8f commit 91f8a27
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@
/.idea/codeStyleSettings.xml
/demo-json/ff.log
/.idea
build/
3 changes: 3 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Version 2.5.6
FIX: products per page options may be null at json response although result exists

Version 2.5.5
CHG: SCIC adapters now exist for all versions (and both interfaces), because the action changes in FF 6.8.
ADD: Legacy Tracking Adapter which can be used for FF6.8 and 6.9
Expand Down
2 changes: 1 addition & 1 deletion build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<project name="FACT-Finder PHP Framework" default="build">

<property name="version" value="2.5.5" override="true" />
<property name="version" value="2.5.6" override="true" />
<property name="buildBaseDir" value="./build" override="true" />
<property name="packageName" value="FACTFinderPHPFramework" override="true" />
<property name="srcdir" value="${project.basedir}" override="true" />
Expand Down
6 changes: 5 additions & 1 deletion lib/FACTFinder/Json66/SearchAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,11 @@ protected function getResultFromRawResult($jsonData) {
$encodingHandler = $this->getEncodingHandler();

$paging = $this->getPaging();
$positionOffset = ($paging->getCurrentPageNumber() - 1) * $this->getProductsPerPageOptions()->getSelectedOption()->getValue();
if ($paging != null && $this->getProductsPerPageOptions() != null && $this->getProductsPerPageOptions()->getSelectedOption() != null) {
$positionOffset = ($paging->getCurrentPageNumber() - 1) * $this->getProductsPerPageOptions()->getSelectedOption()->getValue();
} else {
$positionOffset = 0;
}

//load result
$positionCounter = 1;
Expand Down
2 changes: 1 addition & 1 deletion tests/resources/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<advancedPrefix>FACT-FINDER</advancedPrefix>
<advancedPostfix>FACT-FINDER</advancedPostfix>
</auth>
<context>FACT-Finder</context>
<context>FACT-Finder6.9</context>
<channel>de</channel>
<language>de</language>
<!-- all timeouts given in seconds -->
Expand Down

0 comments on commit 91f8a27

Please sign in to comment.