summaryrefslogtreecommitdiffstats
path: root/install/ui/src/freeipa/certificate.js
diff options
context:
space:
mode:
Diffstat (limited to 'install/ui/src/freeipa/certificate.js')
-rwxr-xr-xinstall/ui/src/freeipa/certificate.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/install/ui/src/freeipa/certificate.js b/install/ui/src/freeipa/certificate.js
index 7a7ece0e1..c2e229302 100755
--- a/install/ui/src/freeipa/certificate.js
+++ b/install/ui/src/freeipa/certificate.js
@@ -523,6 +523,8 @@ IPA.cert.load_policy = function(spec) {
method: 'show',
args: [serial_number],
on_success: function(data, text_status, xhr) {
+ // copy it so consumers can notice the difference
+ that.container.certificate = lang.clone(that.container.certificate);
var cert = that.container.certificate;
cert.revocation_reason = data.result.result.revocation_reason;
that.notify_loaded();
@@ -914,12 +916,11 @@ IPA.cert.status_field = function(spec) {
that.load = function(result) {
that.register_listener();
- that.reset();
+ that.field_load(result);
};
that.set_certificate = function(certificate) {
- that.values = certificate;
- that.reset();
+ that.set_value(certificate);
};
that.register_listener = function() {