Commit 4c5b5253 authored by nanahira's avatar nanahira

fix

parent afa975b4
......@@ -246,8 +246,8 @@ export class CrudBase<T extends ValidCrudEntity<T>> {
extraQuery: (qb: SelectQueryBuilder<T>) => void = () => {},
) {
const query = this.queryBuilder();
if (ent) {
const newEnt = new this.entityClass();
if (ent) {
Object.assign(newEnt, ent);
newEnt.applyQuery(query, this.entityAliasName);
}
......@@ -261,7 +261,7 @@ export class CrudBase<T extends ValidCrudEntity<T>> {
'success',
ents,
count,
ent.getActualPageSettings(),
newEnt.getActualPageSettings(),
);
} catch (e) {
const [sql, params] = query.getQueryAndParameters();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment