Commit f3ad0199 authored by mathavan's avatar mathavan
Browse files

fix warning message and support postcode lookup field in webform

parent 01252d16
......@@ -151,7 +151,7 @@ class CRM_Civicrmpostcodelookup_Page_Civipostcode extends CRM_Core_Page {
// Format address lines based on Royal Mail PAF address assembler (https://github.com/AllenJB/PafUtils)
require_once 'CRM/PafUtils/Address.php';
$addressLineObj = new Address();
$addressLineObj->setUdprn()
$addressLineObj->setUdprn($addressObj->udprn)
->setPostCode($addressObj->postcode)
->setPostTown($addressObj->post_town)
->setDependentLocality($addressObj->dependent_locality)
......
<link rel="stylesheet" type="text/css" href="{$config->extensionsURL}uk.co.vedaconsulting.module.civicrmpostcodelookup/css/civipostcode.css" />
{* Include file having postcodelookup textbox and JS functions *}
{include file='CRM/Civicrmpostcodelookup/Form/Postcodelookup.tpl'}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment