diff --git a/doc/config.html b/doc/config.html index 9c19a362..b4352e91 100755 --- a/doc/config.html +++ b/doc/config.html @@ -1132,11 +1132,15 @@ XYZ-2005-Nov-002 "red">* on the entry form.
  • - Hidden Attributes = <list>
    - If an attribute is present in this list, it is hidden on the entry form. - This can make sense for attributes which are automatically derived from - other attributes via the Change <attribute> - command. + Show Attributes = <list>
    + Attributes present in this list are shown in the single entry page. + Omitting attributes can make sense for attributes which are + automatically derived from other attributes via the + Change <attribute> command. +
  • +
  • + Show Attributes Edit = <list>
    + The same as Show Attributes, but for the entry form.
  • Page title = <string>
    @@ -1657,12 +1661,12 @@ Comment: ... exactly in the message body for that attribute value.

    - Show Attributes = <list>
    + Show Attributes Edit = <list>
    When using conditional attributes, it might be necessary to omit certain attributes under certain conditions, to make the input mask shorter and maybe change the order of the attributes. With this option, a subset of - all attributes can be specified which get displayed on the new entry - input page in the same order as they are specified here. This option only + all attributes can be specified which get displayed on the single entry + page in the same order as they are specified here. This option mainly makes sense when used with conditions, such as:

    - The above statements caus the atrribute Version to be + The above statements cause the atrribute Version to be only visible when "Windows" is selected, and Distribution to be only visible when "Linux" is selected. If "Windows" is selected, the PC name is shown before the diff --git a/src/elogd.c b/src/elogd.c index 328eeaf4..e5b9e1b0 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -258,7 +258,6 @@ char author_list[MAX_N_LIST][NAME_LENGTH] = { #define AF_MUSERLIST (1<<13) #define AF_USEREMAIL (1<<14) #define AF_MUSEREMAIL (1<<15) -#define AF_HIDDEN (1<<16) /* attribute format flags */ #define AFF_SAME_LINE 1 @@ -6817,15 +6816,6 @@ and attr_flags arrays */ attr_flags[j] |= AF_FIXED_REPLY; } - /* check if hidden attribute */ - getcfg(logbook, "Hidden Attributes", list, sizeof(list)); - m = strbreak(list, tmp_list, MAX_N_ATTR, ","); - for (i = 0; i < m; i++) { - for (j = 0; j < n; j++) - if (strieq(attr_list[j], tmp_list[i])) - attr_flags[j] |= AF_HIDDEN; - } - /* check for extendable options */ getcfg(logbook, "Extendable Options", list, sizeof(list)); m = strbreak(list, tmp_list, MAX_N_ATTR, ","); @@ -9321,7 +9311,7 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL subtable = 0; /* generate list of attributes to show */ - if (getcfg(lbs->name, "Show attributes", str, sizeof(str))) { + if (getcfg(lbs->name, "Show attributes edit", str, sizeof(str))) { n_disp_attr = strbreak(str, list, MAX_N_ATTR, ","); for (i = 0; i < n_disp_attr; i++) { for (j = 0; j < n_attr; j++) @@ -9343,10 +9333,6 @@ void show_edit_form(LOGBOOK * lbs, int message_id, BOOL breply, BOOL bedit, BOOL index = attr_index[aindex]; - /* if attribute is hidden, skip it */ - if (attr_flags[index] & AF_HIDDEN) - continue; - strcpy(class_name, "attribname"); strcpy(class_value, "attribvalue"); input_size = 80;