This commit is contained in:
@@ -481,6 +481,7 @@ export default {
|
|||||||
//post
|
//post
|
||||||
//ensure the route doesn't end in /0 which will happen if it's a new record
|
//ensure the route doesn't end in /0 which will happen if it's a new record
|
||||||
//since the edit forms just send the url here with the ID regardless
|
//since the edit forms just send the url here with the ID regardless
|
||||||
|
//note: de-lodash was using lodash here endswith method
|
||||||
if (route.endsWith("/0")) {
|
if (route.endsWith("/0")) {
|
||||||
route = route.slice(0, -2);
|
route = route.slice(0, -2);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -335,8 +335,9 @@ export default {
|
|||||||
if (isATwoTermQuery) {
|
if (isATwoTermQuery) {
|
||||||
//check that both terms aren't tags
|
//check that both terms aren't tags
|
||||||
if (
|
if (
|
||||||
window.$gz._.startsWith(queryTerms[0], "..") &&
|
//note: de-lodashed here not sure if I need to add a null check or not
|
||||||
window.$gz._.startsWith(queryTerms[1], "..")
|
queryTerms[0].startsWith("..") &&
|
||||||
|
queryTerms[1].startsWith("..")
|
||||||
) {
|
) {
|
||||||
vm.errors.push(vm.$ay.t("ErrorPickListQueryInvalid"));
|
vm.errors.push(vm.$ay.t("ErrorPickListQueryInvalid"));
|
||||||
return;
|
return;
|
||||||
@@ -344,8 +345,8 @@ export default {
|
|||||||
|
|
||||||
//check that both aren't non-tags
|
//check that both aren't non-tags
|
||||||
if (
|
if (
|
||||||
!window.$gz._.startsWith(queryTerms[0], "..") &&
|
!queryTerms[0].startsWith("..") &&
|
||||||
!window.$gz._.startsWith(queryTerms[1], "..")
|
!queryTerms[1].startsWith("..")
|
||||||
) {
|
) {
|
||||||
vm.errors.push(vm.$ay.t("ErrorPickListQueryInvalid"));
|
vm.errors.push(vm.$ay.t("ErrorPickListQueryInvalid"));
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user