Commit d0ecad10 authored by Alexander.Trofimov's avatar Alexander.Trofimov

update pivot after change data field

parent c1cade9e
......@@ -6823,13 +6823,16 @@ CT_DataField.prototype.asc_clone = function () {
};
CT_DataField.prototype.asc_set = function (api, pivot, newVal) {
var t = this;
api._changePivotStyle(pivot, function () {
api._changePivotStyle(pivot, function (ws) {
if (t.name !== newVal.name) {
t.asc_setName(newVal.name);
}
if (t.subtotal !== newVal.subtotal) {
t.asc_setSubtotal(newVal.subtotal);
}
ws.clearPivotRable(pivot);
ws.updatePivotTable(pivot);
});
};
CT_DataField.prototype.asc_setName = function(newVal) {
......
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