Revision: 2547
https://sourceforge.net/p/mrbs/code/2547/
Author: cimorrison
Date: 2012-10-31 12:45:36 +0000 (Wed, 31 Oct 2012)
Log Message:
-----------
Fixed bug causing a datalist not to be presented for custom fields on the
Report page even when $datalist_options is set.
Modified Paths:
--------------
mrbs/trunk/web/report.php
Modified: mrbs/trunk/web/report.php
===================================================================
--- mrbs/trunk/web/report.php 2012-10-31 09:00:47 UTC (rev 2546)
+++ mrbs/trunk/web/report.php 2012-10-31 12:45:36 UTC (rev 2547)
@@ -204,8 +204,8 @@
// Otherwise output a text input
else
{
- // We don't use generate_input() here because we want to generate a
<datalist>
- // and not a <select> if $select_options is set. That's because if
we have options
+ // If $select_options is defined we want to force a <datalist> and
not a
+ // <select>. That's because if we have options such as
// ('tea', 'white coffee', 'black coffee') we want the user to be
able to type
// 'coffee' which will match both 'white coffee' and 'black coffee'.
if (isset($select_options["entry.$key"]) &&
!empty($select_options["entry.$key"]))
@@ -218,7 +218,8 @@
}
else
{
- generate_simple_input($params);
+ $params['field'] = "entry.$key";
+ generate_input($params);
}
}
echo "</div>\n";
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits