|
|
| Author |
Message |
jbgood
Joined: 26 Jul 2002 Posts: 5 Location: Netherlands, near Amsterdam
|
Posted: Thu Apr 24, 2003 3:07 am Post subject: minimum value < 0 not accepted |
|
|
i'm graphing ntp stats, values are between -100 and +100. Data Source Item minimal value is not accepting values < 0. I traced this back to the form_input_validate in data_sources.php and data_templates.php "[0-9]+$". I believe this has to be fixed to allow the "-" sign as the first character of the input "[0-9\-]{1}[0-9]+$" did the job for me.
Willem. |
|
| Back to top |
|
 |
raX Lead Developer
Joined: 13 Oct 2001 Posts: 2235 Location: Carlisle, PA
|
Posted: Thu Apr 24, 2003 2:37 pm Post subject: |
|
|
Fixed in CVS. I found this regexp to be shorter though:
-Ian |
|
| Back to top |
|
 |
jbgood
Joined: 26 Jul 2002 Posts: 5 Location: Netherlands, near Amsterdam
|
Posted: Fri Apr 25, 2003 2:10 am Post subject: |
|
|
| You're the expert Thanks!! |
|
| Back to top |
|
 |
|