added custom transaction types
This commit is contained in:
@ -30,7 +30,7 @@ trait Contacts
|
||||
|
||||
public function getContactTypes($index, $return = 'array')
|
||||
{
|
||||
$types = (string) setting('contact.type.' . $index, $index);
|
||||
$types = (string) setting('contact.type.' . $index);
|
||||
|
||||
return ($return == 'array') ? explode(',', $types) : $types;
|
||||
}
|
||||
@ -47,7 +47,7 @@ trait Contacts
|
||||
|
||||
public function addContactType($new_type, $index)
|
||||
{
|
||||
$types = explode(',', setting('contact.type.' . $index, $index));
|
||||
$types = explode(',', setting('contact.type.' . $index));
|
||||
|
||||
if (in_array($new_type, $types)) {
|
||||
return;
|
||||
|
Reference in New Issue
Block a user