Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lonely "next" button in list view #5

Closed
dellermann opened this issue Nov 23, 2013 · 6 comments
Closed

Lonely "next" button in list view #5

dellermann opened this issue Nov 23, 2013 · 6 comments
Assignees
Labels
Milestone

Comments

@dellermann
Copy link
Owner

In some list views, where all available items fit one page, a lonely "next" button from the paginator is displayed (see screenshot).

screenshot-purchase-invoice-list

Related to Bugzilla bug 193.

@dellermann
Copy link
Owner Author

The error seems to be caused by the <g:paginate> tag. We should analyze this problem deeper, especially after release of Grails 2.0.

@dellermann
Copy link
Owner Author

The bug seems to occur if there is only one entry in the list.

@dellermann
Copy link
Owner Author

The "next" button disappears after restarting the application.

@dellermann
Copy link
Owner Author

In SpringCRM 2.0, the error still occurs, but the styles are different (see screenshot):

image

In source code I found the following HTML snippet:

      <nav class="text-center">
        <div class="visible-xs">
          <li role="listitem" aria-label="Nächste"><a href="/organization/index?listType=&amp;offset=0&amp;max=10" class="nextLink"><span aria-hidden="true">»</span></a></li>
        </div>
        <div class="hidden-xs">
          <li role="listitem" aria-label="Nächste"><a href="/organization/index?listType=&amp;offset=0&amp;max=10" class="nextLink"><span aria-hidden="true">»</span></a></li>
        </div>
      </nav>

@dellermann dellermann added this to the 2.0 milestone Feb 17, 2016
@dellermann
Copy link
Owner Author

The issue occurs only after creating the first item in a list. I investigate in that issue and found out that a negative offset value is stored in the session.

@dellermann dellermann self-assigned this Feb 23, 2016
dellermann added a commit that referenced this issue Feb 23, 2016
Fix the issue that a lonely "next" button appears on lists with only one
item.  It was caused by a improperly computed offset in ViewFilters
class.
@dellermann
Copy link
Owner Author

Fixed in commit 924d0db.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant