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

SF.net SVN: ledger-smb:[6654] trunk/UI/create_batch.html



Revision: 6654
          http://sourceforge.net/p/ledger-smb/code/6654
Author:   einhverfr
Date:     2014-01-26 08:15:42 +0000 (Sun, 26 Jan 2014)
Log Message:
-----------
Fixing bug 975, batch screen doesn't pass hiddens along in url

Modified Paths:
--------------
    trunk/UI/create_batch.html

Modified: trunk/UI/create_batch.html
===================================================================
--- trunk/UI/create_batch.html	2014-01-26 08:01:27 UTC (rev 6653)
+++ trunk/UI/create_batch.html	2014-01-26 08:15:42 UTC (rev 6654)
@@ -38,7 +38,13 @@
 <button value="create_vouchers" type="submit" class="submit" name="action">
 <?lsmb text('Continue') ?></button>
 </div>
-<?lsmb FOREACH item = hidden ?>
+<?lsmb 
+hidden_url_base = '';
+FOREACH item = hidden;
+  IF item.value;
+      hidden_url_base = hidden_url_base _ '&' _ item.name _ '=' _ item.value;
+  END;
+   ?>
 <input type=hidden name="<?lsmb item.name ?>" value="<?lsmb item.value ?>">
 <?lsmb END ?>
 </form>
@@ -54,7 +60,8 @@
                tbody = {rows = search_results}
                columns = [
         { col_id='control_code', type='href', name=text('Control Number'), #'
-       href_base="vouchers.pl?action=add_vouchers&batch_type=$batch_type&id=" }
+       href_base="vouchers.pl?action=add_vouchers&batch_type=$batch_type" _
+                   hidden_url_base _ "&id=" }
         { col_id='description', type='text', name = text('Description') }
         { col_id='created_by', type='text', name = text('Created By') } #'
         { col_id='created_on', type='text', name = text('Created On') } #'

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


------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits