Welcome, Guest
Username: Password: Remember me

TOPIC: numeric question doesn't accept comma as decimal seperator

numeric question doesn't accept comma as decimal seperator 2 years 9 months ago #74017

  • khoy
  • khoy's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 19
  • Karma: 0
Hi,

I have a problem with a "numerical input" question.
I have set "decimal seperator" to "comma".
Numeric question has advanced settings value between 0 and 10 and "only integer" = no, "maximum characters" = 4.
When testing a value of 2,6 can be entered (2.6 can not be entered) but when going to the next page you can't proceed because LS says that question isn't answered correctly. Integer values are ok.

I'm testing 1.91 build 11232.
Maybe already solved in a later build but I can't find anything in bugtracker.
Thanks.
The administrator has disabled public write access.

Re: numeric question doesn't accept comma as decimal seperator 2 years 9 months ago #74019

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5426
  • Thank you received: 307
  • Karma: 252
I can reproduce the problem.

Please open a ticket at the bugtracker and...
  1. Give as much information as possible
  2. Attach your survey. You can mark your ticket "private" so that only the developers will be able to take a look at it.
  3. Provide step-by-step instructions how to reproduce the problem.
  4. If possible/helpful please provide screenshots

Afterwards please post the link to the bugtracker so we can follow the progress.

Thanks!

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: numeric question doesn't accept comma as decimal seperator 2 years 9 months ago #74023

  • khoy
  • khoy's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 19
  • Karma: 0
Last Edit: 2 years 9 months ago by DenisChenu. Reason: Direct link ;)
The administrator has disabled public write access.

Re: numeric question doesn't accept comma as decimal seperator 2 years 9 months ago #74035

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5426
  • Thank you received: 307
  • Karma: 252
Thanks for reporting bugs, we'll look into it.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: numeric question doesn't accept comma as decimal seperator 2 years 9 months ago #74047

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6551
  • Thank you received: 869
  • Karma: 257
Mazi wrote:
Thanks for reporting bugs, we'll look into it.
resolved for next release.

khoy : you can download the new file here:
limesurvey.svn.sourceforge.net/viewvc/li...=12425&pathrev=12425

Replace index.php
The administrator has disabled public write access.

Re: numeric question doesn't accept comma as decimal seperator 2 years 9 months ago #74111

  • khoy
  • khoy's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 19
  • Karma: 0
Hi,

It doesn't seem to work.
In the solution this

$nSeperator = getRadixPointData($thissurvey);

doesn't seem to work, $nSeperator is blank.
So the str_replace later on doesn't work.
The administrator has disabled public write access.

Re: numeric question doesn't accept comma as decimal seperator 2 years 9 months ago #74116

  • DenisChenu
  • DenisChenu's Avatar
  • OFFLINE
  • Moderator Lime
  • Posts: 6551
  • Thank you received: 869
  • Karma: 257
Hello

For manual correction,

need
[code type=php-brief]global $connect, $thisstep, $thissurvey;[/code]In start of checkpregs function.

Did you copy/paste the file or only make modification ?
Last Edit: 2 years 9 months ago by DenisChenu. Reason: Oups, made error version .... etc ...
The administrator has disabled public write access.

Re: numeric question doesn't accept comma as decimal seperator 2 years 9 months ago #74138

  • khoy
  • khoy's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 19
  • Karma: 0
Hi,

It works now.
As you suspected I only made the modification and missed the global.

Thanks.
The administrator has disabled public write access.

Re: numeric question doesn't accept comma as decimal seperator 2 years 9 months ago #74154

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5426
  • Thank you received: 307
  • Karma: 252
khoy wrote:
Hi,

It works now.
As you suspected I only made the modification and missed the global.

Thanks.
You're welcome :-)

If our hints have been helpful and you enjoy limesurvey please consider a donation to the team .
We do all this in our free time and you don't have to pay a penny for this software.

Without your help we can't keep this project alive.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.114 seconds
Donation Image