From 72653a9ec49b3544ca4a084c994d70be9ab5de47 Mon Sep 17 00:00:00 2001 From: James Agnew Date: Thu, 8 Dec 2016 10:45:47 -0500 Subject: [PATCH] Fix #500 - Next and previous links not working in testpage UI --- .../src/main/webapp/WEB-INF/templates/result.html | 4 ++-- src/changes/changes.xml | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/hapi-fhir-testpage-overlay/src/main/webapp/WEB-INF/templates/result.html b/hapi-fhir-testpage-overlay/src/main/webapp/WEB-INF/templates/result.html index 1518c72edf3..be38e89a36b 100644 --- a/hapi-fhir-testpage-overlay/src/main/webapp/WEB-INF/templates/result.html +++ b/hapi-fhir-testpage-overlay/src/main/webapp/WEB-INF/templates/result.html @@ -150,7 +150,7 @@ $('#page-prev-btn').click(function() { var btn = $(this); handleActionButtonClick($(this)); - btn.append($('', { type: 'hidden', name: 'page-url', value: '' })); + btn.append($('', { type: 'hidden', name: 'page-url', value: [[${bundle.linkPrevious.value}]] })); $("#outerForm").attr("action", "page").submit(); }); @@ -167,7 +167,7 @@ $('#page-next-btn').click(function() { var btn = $(this); handleActionButtonClick($(this)); - btn.append($('', { type: 'hidden', name: 'page-url', value: '' })); + btn.append($('', { type: 'hidden', name: 'page-url', value: [[${bundle.linkNext.value}]] })); $("#outerForm").attr("action", "page").submit(); }); diff --git a/src/changes/changes.xml b/src/changes/changes.xml index 365fcce6b06..f59ff0980ca 100644 --- a/src/changes/changes.xml +++ b/src/changes/changes.xml @@ -84,6 +84,12 @@ does not contain an ID, or the ID does not match the request URL. Thanks to Jim Steel for reporting! + + Web Testing UI's next and previous buttons for paging + through paged results did not work after the migration + to using Thymeleaf 3. Thanks to GitHub user @gsureshkumar + for reporting! +