This commit is contained in:
@@ -1699,7 +1699,7 @@ namespace AyaNova.Biz
|
|||||||
|
|
||||||
//CLIENT Use only for display in customization form to disambiguate things like
|
//CLIENT Use only for display in customization form to disambiguate things like
|
||||||
//Tags in main workorder and Tags in Workorder Item and Tags in Unit (all on same form)
|
//Tags in main workorder and Tags in Workorder Item and Tags in Unit (all on same form)
|
||||||
public string TKeySection { get; set; }
|
public string TKeySection { get; set; }=null;
|
||||||
|
|
||||||
//CLIENT form customization
|
//CLIENT form customization
|
||||||
public bool Hideable { get; set; }
|
public bool Hideable { get; set; }
|
||||||
|
|||||||
@@ -28,8 +28,9 @@ namespace AyaNova.Biz
|
|||||||
//get the FormField object
|
//get the FormField object
|
||||||
FormField FF = FormFields.Where(z => z.FieldKey == FldLtKey).Single();
|
FormField FF = FormFields.Where(z => z.FieldKey == FldLtKey).Single();
|
||||||
|
|
||||||
//don't validate custom fields, just skip them
|
var proposedObjectType=proposedObject.GetType().ToString();
|
||||||
if (!FF.IsCustomField)
|
//don't validate custom fields, just skip them, make sure if it's sectional it matches the section of the object type (workorder sub sections)
|
||||||
|
if (!FF.IsCustomField && FF.TKeySection == null || proposedObjectType.EndsWith(FF.TKeySection))
|
||||||
{
|
{
|
||||||
//Now get the actual property name from the available fields using the lt key
|
//Now get the actual property name from the available fields using the lt key
|
||||||
string RequiredPropertyName = FF.FieldKey;
|
string RequiredPropertyName = FF.FieldKey;
|
||||||
|
|||||||
Reference in New Issue
Block a user