[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[2704] trunk



Revision: 2704
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2704&view=rev
Author:   einhverfr
Date:     2009-06-25 03:29:55 +0000 (Thu, 25 Jun 2009)

Log Message:
-----------
Corrections to UI/lib/elements.html and test cases

Modified Paths:
--------------
    trunk/UI/lib/elements.html
    trunk/t/04-template-handling.t

Modified: trunk/UI/lib/elements.html
===================================================================
--- trunk/UI/lib/elements.html	2009-06-25 02:16:00 UTC (rev 2703)
+++ trunk/UI/lib/elements.html	2009-06-25 03:29:55 UTC (rev 2704)
@@ -181,7 +181,11 @@
 	  <?lsmb PROCESS auto_label  # Process element label. ?>
 	  <select<?lsmb all_attributes ?><?lsmb all_custom_attributes ?>>
 	    <?lsmb  # Build options.
-	      FOREACH option_data IN element_data.options;
+	      FOREACH optionds IN element_data.options;
+                  option_data = {};
+                  FOREACH key IN optionds.keys;
+                      option_data.$key = optionds.$key;
+                  END; 
 	        PROCESS option 	parent_id = parent_id, optindex = optindex;
                 optindex=optindex+1;
 

Modified: trunk/t/04-template-handling.t
===================================================================
--- trunk/t/04-template-handling.t	2009-06-25 02:16:00 UTC (rev 2703)
+++ trunk/t/04-template-handling.t	2009-06-25 03:29:55 UTC (rev 2704)
@@ -429,7 +429,7 @@
 is(grep (/value="1"  selected="selected"/, @output), 0, 'Select box Value 1 unselected');
 is(grep (/value="1000"  selected="selected"/, @output), 1, 'Select box Value 1000 selected');
 is(grep (/<td class="description">dtest1/, @output), 1, 'Contact description shows');
-is(grep (/value="4"\s+selected="selected">country4/, @output), 1, 'Default Country Set');
+is(grep (/value="4"\s+selected="selected">country4/, @output), 2, 'Default Country Set');
 # bulk payment template tests
 my $payment = LedgerSMB->new();
 $payment->merge({


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.