Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   Problem using attribute type , posted by soren poulsen on Wed Feb 17 17:02:38 2010 
    icon2.gif   Re: Problem using attribute type , posted by soren poulsen on Thu Feb 18 13:21:15 2010 
       icon2.gif   Re: Problem using attribute type , posted by soren poulsen on Thu Feb 18 15:37:07 2010 
          icon2.gif   Re: Problem using attribute type , posted by Stefan Ritt on Fri Mar 12 09:27:25 2010 
             icon2.gif   Re: Problem using attribute type , posted by soren poulsen on Sun Mar 14 20:57:26 2010 
Message ID: 66749     Entry time: Fri Mar 12 09:27:25 2010     In reply to: 66713     Reply to this: 66759
Icon: Reply  Author: Stefan Ritt  Author Email: stefan.ritt@psi.ch 
Category: Bug report  OS: Linux  ELOG Version: 2.7.8-2282 
Subject: Re: Problem using attribute type  

soren poulsen wrote:

soren poulsen wrote:

soren poulsen wrote:

Hi,

This little logbook has a problem:

------------------------

Attributes = Author, Category, Type, Subject, Number

Type Number = numeric

Options Category = General{1}
{1} Options Type = Routine

------------------------

(it was of course more complicated to start with).

When creating a new entry and selecting the Category option, there is a problem with the JavaScript which will populate the Type option.

To avoid the problem, I just comment out the line "Type Number ... "

 

Is this a bug ?

Thanks for your time

Soren

 

(P.S. Using a reserved name as an attribute name is maybe not optimal, but it does not seem to be the  problem).

 

 

 

 

 

 To overcome this problem it is sufficient to switch language from "Language = french" to "Language = english"

It was a mistake not to include the "global" settings in this bug report.

What probably happens is that something in the French translation (accents ?) disturbs the java scripting.

Soren

 

 To use "Language = french" it is necessary to remove or substitute the accent character ' with something else in eloglang.french and then the Javascript code works again.

Soren

Indeed it was the JavaScript line

if (document.form1.Number.value != '- garder les valeurs d'origine -') {

which caused the trouble.  The "'" character closed the string '- garder les valeurs d', which caused an exception. I changed it to

if (document.form1.Number.value != "- garder les valeurs d'origine -") {

and now it should work fine.

ELOG V3.1.5-fe60aaf