Update opensurveysondage.class.php
This commit is contained in:
parent
0448a76df5
commit
fd14ce4ea4
@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user