elderwand 0.1.52 → 0.1.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -121,14 +121,13 @@ module.exports.inherit = function (child) {
|
|
|
121
121
|
var options = {
|
|
122
122
|
perPage: perPage,
|
|
123
123
|
page: page,
|
|
124
|
-
search: text
|
|
124
|
+
search: text,
|
|
125
|
+
criteria:{}
|
|
125
126
|
};
|
|
126
127
|
options.inject(req.options)
|
|
127
128
|
|
|
128
|
-
|
|
129
|
-
var criteria = {}
|
|
130
129
|
if(child.model.generateFilter){
|
|
131
|
-
criteria.inject(child.model.generateCriteria(req.anyKey))
|
|
130
|
+
options.criteria.inject(child.model.generateCriteria(req.anyKey))
|
|
132
131
|
}
|
|
133
132
|
|
|
134
133
|
if(child.model.listByUserOptions){
|