Branch: Tag:

2020-11-19

2020-11-19 21:11:38 by 0

Move instantiation of Module Notes field so it gets enabled for e.g.
MODULE_SECURITY modules as well.

4268:       me->set_configuration( this_object() );    +  // Add a hidden notes field to all modules (including those that don't +  // match MODULE_TYPE_MASK such as MODULE_SECURITY). +  if (err = catch { +  me->defvar("_notes", Variable.String("", VAR_INVISIBLE, "Notes", "")); +  }) { +  throw(err); +  } +     module_type = moduleinfo->type;    if (module_type & MODULE_TYPE_MASK)    {
4284:    }) {    throw(err);    } -  -  if (err = catch { -  me->defvar("_notes", Variable.String("", VAR_INVISIBLE, "Notes", "")); -  }) { -  throw(err); +     } -  } +       #ifdef MODULE_LEVEL_SECURITY    if( (module_type & ~(MODULE_LOGGER|MODULE_PROVIDER|MODULE_USERDB)) != 0 )