Update opensurveysondage.class.php

This commit is contained in:
Frédéric FRANCE 2020-11-13 21:16:58 +01:00 committed by GitHub
parent 0448a76df5
commit fd14ce4ea4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,6 @@ class Opensurveysondage extends CommonObject
*/ */
public $picto = 'poll'; public $picto = 'poll';
/** /**
* @var string ID survey * @var string ID survey
*/ */
@ -88,6 +87,10 @@ class Opensurveysondage extends CommonObject
* @var int status * @var int status
*/ */
public $status = 1; public $status = 1;
/**
* @var string format of survey
*/
public $format; public $format;
/** /**
@ -201,10 +204,8 @@ class Opensurveysondage extends CommonObject
} }
// Commit or rollback // Commit or rollback
if ($error) if ($error) {
{ foreach ($this->errors as $errmsg) {
foreach ($this->errors as $errmsg)
{
dol_syslog(get_class($this)."::create ".$errmsg, LOG_ERR); dol_syslog(get_class($this)."::create ".$errmsg, LOG_ERR);
$this->error .= ($this->error ? ', '.$errmsg : $errmsg); $this->error .= ($this->error ? ', '.$errmsg : $errmsg);
} }