bugs fixed with itemBotanical model

This commit is contained in:
Daniel Herrero 2018-02-21 11:10:00 +01:00
parent f1f8c74175
commit a153005a79
2 changed files with 4 additions and 3 deletions

View File

@ -1,10 +1,12 @@
<mg-ajax
path="/item/api/ItemBotanicals/{{patch.params.id}}"
path="/item/api/ItemBotanicals"
options="vnPatch">
</mg-ajax>
<vn-watcher
vn-id="watcher"
data="$ctrl.botanical"
id-field="itemFk"
required-field="itemFk"
form="form"
save="patch">
</vn-watcher>
@ -30,7 +32,7 @@
url="/item/api/species"
show-field="latin_species_name"
value-field="specie_id"
label="Specie">
label="Species">
</vn-autocomplete>
</vn-horizontal>
</vn-vertical>

View File

@ -39,7 +39,6 @@ class ItemSummary {
};
this.$http.get(`/item/api/ItemNiches?filter=${JSON.stringify(filter)}`).then(response => {
this.niches = response.data;
this.setOldNiches(response);
});
}