This commit is contained in:
@@ -216,7 +216,7 @@ todo:3 Whats new in this release popup or link tied into the update process of t
|
||||
|
||||
|
||||
|
||||
todo:1 seeder customer and head office accounts now login show "No features have been enabled for your account"
|
||||
|
||||
todo:1 report template NAME uniqueness validation rule: can this be unique by ayatype only?
|
||||
seems weird that no two reports of any kind can have same name
|
||||
also the default comes up as "report" sb blank with pre-broken rule saying name is required or at least uniquify it with a timestamp or something
|
||||
@@ -776,4 +776,5 @@ BUILD 129 CHANGES OF NOTE
|
||||
- Fixed bug with bulk operations extension on Workorders / quotes / pm's that was preventing things like mass tagging workorders etc
|
||||
- Fixed bug where data table page setting was lost on opening a record then returning to the datatable
|
||||
- User and Contact data lists added Translation column as available option
|
||||
- Translation added internal "BaseLanguage" field so when we have future updates with new translations in them we know which source language to use to update custom translations
|
||||
- Translation added internal "BaseLanguage" field so when we have future updates with new translations in them we know which source language to use to update custom translations
|
||||
- Seeder seed database enabled customer login features in example global settings
|
||||
@@ -380,6 +380,12 @@ export default {
|
||||
return;
|
||||
}
|
||||
vm.obj.aType = vm.$route.params.reportDataOptions.AType;
|
||||
|
||||
//trigger rule breaking / validation
|
||||
this.$nextTick(() => {
|
||||
this.obj.name = null;
|
||||
this.fieldValueChanged(`name`);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -753,6 +753,7 @@ const FORM_CUSTOM_TEMPLATE_KEY = "Customer"; //<-- Should always be CoreBizObjec
|
||||
export default {
|
||||
async created() {
|
||||
let vm = this;
|
||||
let completelyNew = false;
|
||||
//Prevent returning back to the /0 NEW route after having just created a new record and instead return to the original new source page
|
||||
// console.log("cust-customer created params: ", vm.$route.params);
|
||||
// if (
|
||||
@@ -791,6 +792,8 @@ export default {
|
||||
"Copy"
|
||||
)}`;
|
||||
setDirty = true;
|
||||
} else {
|
||||
completelyNew = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -805,6 +808,14 @@ export default {
|
||||
window.$gz.errorHandler.handleFormError(error, vm);
|
||||
} finally {
|
||||
vm.formState.ready = true;
|
||||
if (completelyNew) {
|
||||
//completely new record pre-break name rule so it shows as required
|
||||
//trigger rule breaking / validation
|
||||
this.$nextTick(() => {
|
||||
this.obj.name = null;
|
||||
this.fieldValueChanged(`name`);
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
async beforeRouteLeave(to, from, next) {
|
||||
@@ -834,7 +845,7 @@ export default {
|
||||
{
|
||||
id: 0,
|
||||
concurrency: 0,
|
||||
name: null,
|
||||
name: undefined,
|
||||
active: true,
|
||||
notes: null,
|
||||
wiki: null,
|
||||
|
||||
Reference in New Issue
Block a user