Revision: 2329
http://mrbs.svn.sourceforge.net/mrbs/?rev=2329&view=rev
Author: cimorrison
Date: 2012-07-11 16:53:05 +0000 (Wed, 11 Jul 2012)
Log Message:
-----------
Fixed bug when producing reports using custom fields and a mandatory field
which is a select box
Modified Paths:
--------------
mrbs/trunk/web/report.php
Modified: mrbs/trunk/web/report.php
===================================================================
--- mrbs/trunk/web/report.php 2012-07-11 16:42:08 UTC (rev 2328)
+++ mrbs/trunk/web/report.php 2012-07-11 16:53:05 UTC (rev 2329)
@@ -393,10 +393,12 @@
elseif (isset($value))
{
// If the custom field is an associative array then we want
- // the value rather than the array key
+ // the value rather than the array key (provided the key is not
+ // an empty string)
if (isset($select_options["entry.$field"]) &&
is_assoc($select_options["entry.$field"]) &&
- array_key_exists($value, $select_options["entry.$field"]))
+ array_key_exists($value, $select_options["entry.$field"]) &&
+ ($value != ''))
{
$value = $select_options["entry.$field"][$value];
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits