added custom transaction types

This commit is contained in:
Denis Duliçi
2020-08-26 15:14:16 +03:00
parent d64917a3e0
commit 68f31b895f
11 changed files with 115 additions and 23 deletions

View File

@ -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;