$hist = $container->get('history');
$l10n = $container->get('l10n');
$emitter = $container->get('event_manager');
+ $router = $container->get('router');
}
$i18n = $container->get('i18n');
$translator = $container->get('translator');
): Response {
//instantiate member object
$member = new Adherent($this->zdb);
- $member->enableAllDeps()->load($id);
if ($this->session->member !== null) {
//retrieve from session, in add or edit
$this->session->member = null;
$id = $member->id;
}
+ $member->enableAllDeps();
if ($id !== null) {
//load requested member
$email = $this->parent->email;
}
- return $email;
+ return $email ?? '';
}
/**
$address = $this->parent->address;
}
- return $address;
+ return $address ?? '';
}
/**
$address_continuation = $this->parent->address_continuation;
}
- return $address_continuation;
+ return $address_continuation ?? '';
}
/**
$zip = $this->parent->zipcode;
}
- return $zip;
+ return $zip ?? '';
}
/**
$town = $this->parent->town;
}
- return $town;
+ return $town ?? '';
}
/**
$country = $this->parent->country;
}
- return $country;
+ return $country ?? '';
}
/**
{_T string="Add"}
</button>
<input type="hidden" name="form_name" id="form_name" value="{$form_name}"/>
+ {include file="forms_types/csrf.tpl"}
</div>
{if $mode neq 'ajax'}
</fieldset>
{/block}
{block name="javascripts"}
+{if isset($trans) && $trans|@count > 0}
{if $exists}
<script type="text/javascript">
$('#text_orig').change(function(e) {
});
</script>
{/if}
+{/if}
{/block}