+
{{ iconForType }} {{ name }}
@@ -191,7 +191,7 @@ export default {
userId: window.$gz.store.state.userId,
assignedByUserId: window.$gz.store.state.userId,
objectId: null,
- aType: null,
+ sockType: null, //case 4468: the server field is SockType; the form used AyaNova's AType, so reviews were saved with no type
overDue: false
},
formState: {
@@ -222,7 +222,7 @@ export default {
},
iconForType() {
- return window.$gz.util.iconForType(this.obj.aType);
+ return window.$gz.util.iconForType(this.obj.sockType);
},
hasSupervisorRole: function() {
return window.$gz.role.hasRole([
@@ -298,10 +298,10 @@ export default {
vm.obj.objectId = window.$gz.util.stringToIntOrNull(
vm.$route.params.objectId
);
- vm.obj.aType = window.$gz.util.stringToIntOrNull(
+ vm.obj.sockType = window.$gz.util.stringToIntOrNull(
vm.$route.params.aType
);
- if (!vm.obj.objectId || !vm.obj.aType) {
+ if (!vm.obj.objectId || !vm.obj.sockType) {
throw "SockType and ObjectId are required to create a review";
}
}
@@ -337,7 +337,7 @@ export default {
methods: {
navToTarget: function() {
window.$gz.eventBus.$emit("openobject", {
- type: this.obj.aType,
+ type: this.obj.sockType,
id: this.obj.objectId
});
},
@@ -515,7 +515,7 @@ async function clickHandler(menuItem) {
name: "review-edit",
params: {
recordid: 0,
- aType: m.vm.obj.aType,
+ aType: m.vm.obj.sockType,
objectId: m.vm.obj.objectId,
name: m.vm.name
}