Update database_transaction_edit.php

This commit is contained in:
FusionPBX 2018-02-13 09:33:51 -07:00 committed by GitHub
parent 82daa62767
commit 4a620ca22c
1 changed files with 7 additions and 5 deletions

View File

@ -86,11 +86,13 @@
} }
//get the type if not provided //get the type if not provided
if (strlen($transaction_old) > 4) { if (strlen($transaction_type) == 0) {
$transaction_type = 'add'; if ($transaction_old == null || $transaction_old == "null") {
} $transaction_type = 'add';
else { }
$transaction_type = 'update'; else {
$transaction_type = 'update';
}
} }
//show the header //show the header