Added support for status ANY
This commit is contained in:
parent
88bea376f3
commit
49b8424965
|
@ -1058,11 +1058,6 @@ public class CKANPackage extends CKAN implements Moderated {
|
|||
if(isModerationEnabled()) {
|
||||
String q = parameters.get(GCatConstants.Q_KEY);
|
||||
|
||||
StringBuffer stringBuffer = new StringBuffer();
|
||||
stringBuffer.append("(");
|
||||
stringBuffer.append(CM_STATUS_QUERY_FILTER_KEY);
|
||||
stringBuffer.append(":");
|
||||
|
||||
CMItemStatus cmItemStatus = getRequestedCMItemStatus();
|
||||
|
||||
this.apiKey = CKANUtility.getSysAdminAPI();
|
||||
|
@ -1092,7 +1087,12 @@ public class CKANPackage extends CKAN implements Moderated {
|
|||
cmItemStatus = CMItemStatus.APPROVED;
|
||||
}
|
||||
|
||||
StringBuffer stringBuffer = new StringBuffer();
|
||||
stringBuffer.append("(");
|
||||
stringBuffer.append(CM_STATUS_QUERY_FILTER_KEY);
|
||||
stringBuffer.append(":");
|
||||
stringBuffer.append(cmItemStatus.getValue());
|
||||
|
||||
if(cmItemStatus == CMItemStatus.APPROVED) {
|
||||
stringBuffer.append(" OR (*:* -");
|
||||
stringBuffer.append(CM_STATUS_QUERY_FILTER_KEY);
|
||||
|
|
Loading…
Reference in New Issue