Changeset 12481


Ignore:
Timestamp:
16 Jan 2015, 06:28:28 (10 years ago)
Author:
Henrik Bettermann
Message:

Do only forward hash hidden input element if the view does provide it. Otherwise Interswitch might complain.

Location:
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/browser_templates
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/browser_templates/applicant_goto_interswitch.pt

    r12477 r12481  
    5757  <input type="hidden" name="currency" tal:attributes="value view/currency" />
    5858  <input type="hidden" name="pay_item_id" tal:attributes="value view/pay_item_id" />
    59   <input type="hidden" name="hash" tal:attributes="value view/hashvalue" />
     59  <input type="hidden" name="hash" tal:condition="python: getattr(view, 'hashvalue', False)"
     60                                   tal:attributes="value view/hashvalue" />
    6061  <input type="hidden" name="site_redirect_url" tal:attributes="value view/site_redirect_url" />
    6162  <input type="hidden" name="site_name" tal:attributes="value view/site_name" />
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/browser_templates/student_goto_interswitch.pt

    r12477 r12481  
    5757  <input type="hidden" name="currency" tal:attributes="value view/currency" />
    5858  <input type="hidden" name="pay_item_id" tal:attributes="value view/pay_item_id" />
    59   <input type="hidden" name="hash" tal:attributes="value view/hashvalue" />
     59  <input type="hidden" name="hash" tal:condition="python: getattr(view, 'hashvalue', False)"
     60                                   tal:attributes="value view/hashvalue" />
    6061  <input type="hidden" name="site_redirect_url" tal:attributes="value view/site_redirect_url" />
    6162  <input type="hidden" name="site_name" tal:attributes="value view/site_name" />
Note: See TracChangeset for help on using the changeset viewer.