Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG, Page 528 of 808  Not logged in ELOG logo
icon4.gif   3-level conditional not working, posted by Harry Martin on Thu Mar 20 07:34:24 2025 
Not sure if this is a bug or not; if it is not, kindly reclassify the category.

Following is a small example of what I will dub a 3-level, conditional logbook:



[cond_test]
icon4.gif   passing %s to $shell interpreted differently in preset vs preset on reply, posted by Harry Martin on Wed Jun 18 01:20:47 2025 
I am finding that '%s' passed to a $shell(...) command must be escaped when calling
from Preset on reply, but not when calling Preset
new.  Example:
icon4.gif   collapse does not seem to work as expected, posted by Harry Martin on Thu Jul 17 23:43:25 2025 
When I click on "collapse," even several times, I still see all the replies in each thread rather than just one entry representing each entire
thread.

I am running elogd 3.1.5 on devuan chimaera (bullseye) which I built from source.  I had the same results with 3.1.4 and 3.1.3.
    icon4.gif   Re: collapse does not seem to work as expected, posted by Harry Martin on Fri Jul 18 22:42:02 2025 
I should add that this does not happen in every logbook.  I'm looking into what the distinction is that causes this in certain logbooks and
not in others.




Harry
    icon4.gif   Re: collapse does not seem to work as expected, posted by Harry Martin on Fri Jul 18 23:10:33 2025 
Figured it out:  I had "Sort Attributes" set on the logbooks that were failing to collapse correctly.  At least, I think that is
the distinction.  

I think I can live with "Sort Attributes" disabled; I don't recall why I chose to set the "Sort Attributes" in the first
    icon4.gif   Re: collapse does not seem to work as expected, posted by Harry Martin on Sat Jul 19 00:02:45 2025 
I also notice that collapse does not work properly if I have anything selected in the quick filter.




Harry
Martin wrote:



Figured it out:  I had "Sort Attributes" set on the
    icon4.gif   Re: 3-level conditional not working, posted by Harry Martin on Sun Jul 20 23:20:02 2025 
Tried a variant, this time for NEW entries (not EDIT), which I meant to do to begin with; sorry if that was confusing. 




[cond_test]
attributes = region, manufacturer, model
icon8.gif   show attributes directive does not work?, posted by Harry Martin on Sat Aug 16 02:48:42 2025 Screenshot_2025-08-15_17-57-59.png
Follows a very simple logbook definition:


[simple]
Comment = test show attributes directive
ELOG V3.1.5-3fb85fa6