Explorar o código

fixed fetch primaryKey in TableAjax

Piotr Labudda %!s(int64=8) %!d(string=hai) anos
pai
achega
456af19424
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      SE/se-lib/TableAjax.php

+ 1 - 0
SE/se-lib/TableAjax.php

@@ -2161,6 +2161,7 @@ class TableAjax extends ViewAjax {
 				if (!skipCols) state.data.cols = data.cols || {};
 				state.data.rows = data.rows || [];
 				state.data.total = data.total || 0;
+				state.data.primaryKey = data.primaryKey || 'ID';
 				state.page = data.page || 0;
 				state.pageSize = data.pageSize || priv.options.pageSize;
 				state.filters = data.filters || {};