i open page properties , fill fields

after pressed cancel button, , reopened properties dialog, field cleared, datetime fields didn't.

what rigth way clear datetime fields?
i debuggin , find out strange behavior of  isapplydefault method in \ibs\cq\ui\widgets\source\ext\override\widgets\form\field.js. compare created , modefied date, if equals returns true, otherwise false.
i ovveride method processrecord in datetime.js remove calling isapplydefault:
processrecord: function(record, path) {     if (this.fireevent('beforeloadcontent', this, record, path) !== false) {         var v = record.get(this.getname());         if (v == undefined && this.defaultvalue != null) {                this.setvalue(this.defaultvalue);         }         else {             this.setvalue(v);         }         this.fireevent('loadcontent', this, record, path);     } } in field.js is:
processrecord: function(record, path) {     if (this.fireevent('beforeloadcontent', this, record, path) !== false) {         var v = record.get(this.getname());         if (v == undefined && this.defaultvalue != null) {             if (this.isapplydefault(record, path)) {                this.setvalue(this.defaultvalue);             }         }         else {             this.setvalue(v);         }         this.fireevent('loadcontent', this, record, path);     } } see in adobe forum
Comments
Post a Comment