diff --git a/modules/travel/front/thermograph/create/index.html b/modules/travel/front/thermograph/create/index.html index f73938f5b..d03bcfd1a 100644 --- a/modules/travel/front/thermograph/create/index.html +++ b/modules/travel/front/thermograph/create/index.html @@ -120,11 +120,6 @@ url="Thermographs/getThermographModels" data="thermographModels"> - - + ng-model="$ctrl.newThermograph.temperatureFk" + url="Temperatures" + data='Temperatures' + show-field="name" + value-field="code"> diff --git a/modules/travel/front/thermograph/create/index.js b/modules/travel/front/thermograph/create/index.js index 666393350..b6d78fc50 100644 --- a/modules/travel/front/thermograph/create/index.js +++ b/modules/travel/front/thermograph/create/index.js @@ -63,12 +63,11 @@ class Controller extends Section { this.newThermograph = { thermographId: this.thermographId, warehouseId: this.warehouseId, - temperature: defaultTemperature, + temperatureFk: defaultTemperature, model: defaultModel }; this.$.modelsModel.refresh(); - this.$.temperaturesModel.refresh(); this.$.newThermographDialog.show(); }