Merge branch '3.1'
This commit is contained in:
commit
b2981d41df
@ -129,10 +129,15 @@ class ActionComm extends CommonObject
|
|||||||
# Get id from code
|
# Get id from code
|
||||||
$cactioncomm=new CActionComm($this->db);
|
$cactioncomm=new CActionComm($this->db);
|
||||||
$result=$cactioncomm->fetch($this->type_code);
|
$result=$cactioncomm->fetch($this->type_code);
|
||||||
if ($result)
|
if ($result > 0)
|
||||||
{
|
{
|
||||||
$this->type_id=$cactioncomm->id;
|
$this->type_id=$cactioncomm->id;
|
||||||
}
|
}
|
||||||
|
else if ($result == 0)
|
||||||
|
{
|
||||||
|
$this->error='Failed to get record with code AC_OTH from dictionnary "type of events"';
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->error=$cactioncomm->error;
|
$this->error=$cactioncomm->error;
|
||||||
@ -148,7 +153,7 @@ class ActionComm extends CommonObject
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$this->db->begin("ActionComm::add");
|
$this->db->begin();
|
||||||
|
|
||||||
$sql = "INSERT INTO ".MAIN_DB_PREFIX."actioncomm";
|
$sql = "INSERT INTO ".MAIN_DB_PREFIX."actioncomm";
|
||||||
$sql.= "(datec,";
|
$sql.= "(datec,";
|
||||||
@ -208,13 +213,13 @@ class ActionComm extends CommonObject
|
|||||||
// Fin appel triggers
|
// Fin appel triggers
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->db->commit("ActionComm::add");
|
$this->db->commit();
|
||||||
return $this->id;
|
return $this->id;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$this->error=$this->db->lasterror().' sql='.$sql;
|
$this->error=$this->db->lasterror().' sql='.$sql;
|
||||||
$this->db->rollback("ActionComm::add");
|
$this->db->rollback();
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -5,13 +5,13 @@ SeparatorDecimal = ,
|
|||||||
SeparatorThousand = .
|
SeparatorThousand = .
|
||||||
FormatDateShort = %d-%m-%Y
|
FormatDateShort = %d-%m-%Y
|
||||||
FormatDateShortJava = dd-MM-yyyy
|
FormatDateShortJava = dd-MM-yyyy
|
||||||
FormatHourShort = %U:%M
|
FormatHourShort = %H:%M
|
||||||
FormatHourShortDuration = %U:%M
|
FormatHourShortDuration = %H:%M
|
||||||
FormatDateTextShort = %d %b %Y
|
FormatDateTextShort = %d %b %Y
|
||||||
FormatDateText = %d %B %Y
|
FormatDateText = %d %B %Y
|
||||||
FormatDateHourShort = %d-%m-%Y %U:%M
|
FormatDateHourShort = %d-%m-%Y %H:%M
|
||||||
FormatDateHourTextShort = %d %b %Y %U:%M
|
FormatDateHourTextShort = %d %b %Y %H:%M
|
||||||
FormatDateHourText = %d %B %Y %U:%M
|
FormatDateHourText = %d %B %Y %H:%M
|
||||||
DatabaseConnection = Databaseverbinding
|
DatabaseConnection = Databaseverbinding
|
||||||
NoError = Geen fout
|
NoError = Geen fout
|
||||||
Error = Fout
|
Error = Fout
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user