Merge pull request #12360 from grandoc/new_branch_06_11_2019

fix error message
This commit is contained in:
Laurent Destailleur 2019-11-07 11:24:15 +01:00 committed by GitHub
commit 7144740dfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -228,6 +228,7 @@ TicketNotNotifyTiersAtCreate=Not notify company at create
Unread=Unread
TicketNotCreatedFromPublicInterface=Not available. Ticket was not created from public interface.
PublicInterfaceNotEnabled=Public interface was not enabled
ErrorTicketRefRequired=Ticket reference name is required
#
# Logs

View File

@ -306,7 +306,7 @@ class Ticket extends CommonObject
}
if (empty($this->ref)) {
$this->errors[] = 'ErrorBadRef';
$this->errors[] = 'ErrorTicketRefRequired';
dol_syslog(get_class($this) . "::create error -1 ref null", LOG_ERR);
$result = -1;
}