From 15281b7158457a197584cf2fd8109d3aca3f7df2 Mon Sep 17 00:00:00 2001 From: miker Date: Wed, 23 Jul 2008 01:44:39 +0000 Subject: [PATCH 1/1] be careful with identity values git-svn-id: svn://svn.open-ils.org/ILS/trunk@10092 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/web/js/dojo/openils/widget/TranslatorPopup.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Open-ILS/web/js/dojo/openils/widget/TranslatorPopup.js b/Open-ILS/web/js/dojo/openils/widget/TranslatorPopup.js index d9292d703c..f946ee2d49 100644 --- a/Open-ILS/web/js/dojo/openils/widget/TranslatorPopup.js +++ b/Open-ILS/web/js/dojo/openils/widget/TranslatorPopup.js @@ -52,7 +52,7 @@ if(!dojo._hasResource["openils.widget.TranslatorPopup"]) { postCreate : function () { - dojo.connect(this.tooltipDialog, 'onFocus', this, 'renderTranslatorPopup'); + dojo.connect(this.tooltipDialog, 'onOpen', this, 'renderTranslatorPopup'); this.nls = dojo.i18n.getLocalization("openils.widget", "TranslatorPopup"); @@ -183,7 +183,7 @@ if(!dojo._hasResource["openils.widget.TranslatorPopup"]) { isdeleted : method == 'delete' ? 1 : 0, id : trans_id, fq_field : this._targetObject.classname + '.' + this.field, - identity_value : this._targetObject.id(), + identity_value : this._targetObject[fieldmapper[this._targetObject.classname].Identifier](), translation : dijit.byId('locale_' + trans_id).getValue(), string : dijit.byId('translation_' + trans_id).getValue() }); @@ -197,7 +197,7 @@ if(!dojo._hasResource["openils.widget.TranslatorPopup"]) { var trans_obj = new i18n().fromHash({ isnew : 1, fq_field : this._targetObject.classname + '.' + this.field, - identity_value : this._targetObject.id(), + identity_value : this._targetObject[fieldmapper[this._targetObject.classname].Identifier](), translation : dijit.byId('i18n_new_locale_' + this._targetObject.classname + '.' + this.field + this.unique).getValue(), string : dijit.byId('i18n_new_translation_' + this._targetObject.classname + '.' + this.field + this.unique).getValue() }); -- 2.43.2