cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ustcweizhou <...@git.apache.org>
Subject [GitHub] cloudstack issue #1910: CLOUDSTACK-9748:VPN Users search functionality broke...
Date Thu, 16 Feb 2017 08:44:03 GMT
Github user ustcweizhou commented on the issue:

    https://github.com/apache/cloudstack/pull/1910
  
    @Ashadeepa I just tested it. It seems it is not working as I expected if username and
keyword are both set.
    I suggest to use the following
    ```
            sb.and("username", sb.entity().getUsername(), SearchCriteria.Op.EQ);
            sb.and("keyword", sb.entity().getUsername(), SearchCriteria.Op.LIKE);
    ...
            if (keyword!= null) {
                 sc.setParameters("keyword",  "%" + keyword + "%");
             }
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message