mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
Etemplate: Fix isDirty() was always false for multi-select (tracker selection)
This commit is contained in:
parent
5b5bb12d02
commit
77a413b66b
@ -220,7 +220,6 @@ var et2_inputWidget = /** @class */ (function (_super) {
|
||||
return this._oldValue;
|
||||
};
|
||||
et2_inputWidget.prototype.isDirty = function () {
|
||||
var _a;
|
||||
var value = this.getValue();
|
||||
if (typeof value !== typeof this._oldValue) {
|
||||
return true;
|
||||
@ -230,7 +229,7 @@ var et2_inputWidget = /** @class */ (function (_super) {
|
||||
}
|
||||
switch (typeof this._oldValue) {
|
||||
case "object":
|
||||
if (((_a = this._oldValue) === null || _a === void 0 ? void 0 : _a.length) && typeof this._oldValue.length !== "undefined" &&
|
||||
if (typeof this._oldValue.length !== "undefined" &&
|
||||
this._oldValue.length !== value.length) {
|
||||
return true;
|
||||
}
|
||||
|
@ -324,7 +324,7 @@ export class et2_inputWidget extends et2_valueWidget implements et2_IInput, et2_
|
||||
switch(typeof this._oldValue)
|
||||
{
|
||||
case "object":
|
||||
if(this._oldValue?.length && typeof this._oldValue.length !== "undefined" &&
|
||||
if(typeof this._oldValue.length !== "undefined" &&
|
||||
this._oldValue.length !== value.length
|
||||
)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user