ID |
Date |
Icon |
Author |
Author Email |
Category |
OS |
ELOG Version |
Subject |
68627
|
Wed May 31 13:28:51 2017 |
| Andreas Luedeke | andreas.luedeke@psi.ch | Bug report | Linux | 3.1.1 | Re: inactive users | > Hi,
> I reopen this old thread since I'm having a similar problem.
>
> I'm running ELOG V3.1.1-0767eb0 on ubuntu with webserver authentication, and I'd like to remove 'active' checkbox as well.
>
> The problem that we found is that if any user click on the [Set None] button at the bottom of the Config page in order to unsubscribe from all mail notification,
> *all* the checkbox are toggled, not only those for the email notification. And this includes also the "active user" as well.
I can confirm that this bug is present even in this forum and in my current version (ELOG V3.1.3-aded4ae).
And I am positive that this is a bug: it was certainly not the intended behaviour. |
68628
|
Wed May 31 16:02:46 2017 |
| Stefano Lacaprara | stefano.lacaprara@pd.infn.it | Bug report | Linux | 3.1.1 | Re: inactive users | Hi,
a possible solution is to change the current SetAll() and SetNone() javascript functions to something like:
<!--
function SetNone()
{
for(var i=0,els=document.querySelectorAll('[name^="sub_lb"]'); i<els.length; i++)
{
els[i].checked = false;
}
}
function SetAll()
{
for(var i=0,els=document.querySelectorAll('[name^="sub_lb"]'); i<els.length; i++)
{
els[i].checked = true;
}
}
//-->
It works on Chromium 58.x and Firefox 53.x, I don't know about other browsers.
The javascript snippet is generated in function elogd.c: void show_config_page(LOGBOOK * lbs) (line 13960-984 on my version of the source code).
Best,
Stefano |
Draft
|
Mon Feb 26 18:16:35 2018 |
| Stefano Lacaprara | stefano.lacaprara@pd.infn.it | Bug report | Linux | 3.1.1 | Re: inactive users | Hi,
sorry to bother again on this issue, but it is causing me some trouble, as many of my users are using the "SetNone" button in their config page, and doing so they deactivate their account, which I have to re-activate manually.
The warning about "Are you sure you want to deactivate your own account ..." is actually triggered only when someone toggle the "active" radio button, but not when the "SetNone" function is used. In that case no warning is present, and the user just deactivate his/her account. I'm sure that this is not the intended behavior.
I attach a modified version of elogd.c (based on git c1866af75bb2fe62aa868c4cf562f43a08e4b499 ) with the modified javascript I proposed earlier in this thread.
best,
Stefano |
68745
|
Mon Feb 26 18:27:09 2018 |
| Stefano Lacaprara | stefano.lacaprara@pd.infn.it | Bug report | Linux | 3.1.3 | Re: inactive users | Hi,
sorry to bother again on this issue, but it is causing me some trouble, as many of my users are using the "SetNone" button in their config page, and doing so they deactivate their account, which I have to
re-activate manually.
The warning about "Are you sure you want to deactivate your own account ..." is actually triggered only when someone toggle the "active" radio button, but not when the "SetNone" function is used. In that
case no warning is present, and the user just deactivate his/her account. I'm sure that this is not the intended behavior.
I attach a modified version of elogd.c (based on git c1866af75bb2fe62aa868c4cf562f43a08e4b499 ) with the modified javascript I proposed earlier in this thread.
best,
Stefano |
68880
|
Fri Dec 21 14:59:05 2018 |
| Stefan Ritt | stefan.ritt@psi.ch | Bug report | Linux | 3.1.3 | Re: inactive users | Thanks for the fix, I merged it into the current development branch.
Stefan |
866
|
Thu Jan 6 11:25:54 2005 |
| Stefan Ritt | stefan.ritt@psi.ch | Request | Linux | | Re: implement 'hide attribute' and 'sort attribute' | > Could you implement a 'hide attribute' and 'sort attribute' config option?
I implemented it as 'hidden attributes = <list>' and 'sort attributes'. |
870
|
Mon Jan 10 19:44:16 2005 |
| Heiko Scheit | h.scheit@mpi-hd.mpg.de | Request | Linux | | Re: implement 'hide attribute' and 'sort attribute' | > > Could you implement a 'hide attribute' and 'sort attribute' config option?
>
> I implemented it as 'hidden attributes = <list>' and 'sort attributes'.
'sort attributes' sorts the logbook entries when they are displayed. Or?
What I want is to rearrange the entry mask. E.g. if 'Entry type' article is
selected then the attributes 'Author', 'Journal', 'Title', and 'Year'
should be listed first, as they are required for this bibtex entry type.
Is it possible with the current elogd version to also sort (rearrange) the
attributes in the entry mask? If yes, how?
Thanks for your time. |
871
|
Mon Jan 10 20:23:35 2005 |
| Stefan Ritt | stefan.ritt@psi.ch | Request | Linux | | Re: implement 'hide attribute' and 'sort attribute' | > 'sort attributes' sorts the logbook entries when they are displayed. Or?
Right
> What I want is to rearrange the entry mask. E.g. if 'Entry type' article is
> selected then the attributes 'Author', 'Journal', 'Title', and 'Year'
> should be listed first, as they are required for this bibtex entry type.
> Is it possible with the current elogd version to also sort (rearrange) the
> attributes in the entry mask? If yes, how?
Attributes are shown in the order you specify them in the config file, so what about
Attributes = Entry type, Author, Journal, Title, Year ??? |
|