class/bbctypes.class.php 1 location
|
@@ 147-159 (lines=13) @@
|
| 144 |
|
dol_syslog(__METHOD__ . ' ' . join(',', $this->errors), LOG_ERR); |
| 145 |
|
} |
| 146 |
|
|
| 147 |
|
if (!$error) { |
| 148 |
|
$this->id = $this->db->last_insert_id(MAIN_DB_PREFIX . $this->table_element); |
| 149 |
|
|
| 150 |
|
if (!$notrigger) { |
| 151 |
|
// Uncomment this and change MYOBJECT to your own tag if you |
| 152 |
|
// want this action to call a trigger. |
| 153 |
|
|
| 154 |
|
//// Call triggers |
| 155 |
|
//$result=$this->call_trigger('MYOBJECT_CREATE',$user); |
| 156 |
|
//if ($result < 0) $error++; |
| 157 |
|
//// End call triggers |
| 158 |
|
} |
| 159 |
|
} |
| 160 |
|
|
| 161 |
|
// Commit or rollback |
| 162 |
|
if ($error) { |
class/bbcvols.class.php 1 location
|
@@ 255-267 (lines=13) @@
|
| 252 |
|
dol_syslog(__METHOD__ . ' ' . join(',', $this->errors), LOG_ERR); |
| 253 |
|
} |
| 254 |
|
|
| 255 |
|
if (!$error) { |
| 256 |
|
$this->id = $this->db->last_insert_id(MAIN_DB_PREFIX . $this->table_element); |
| 257 |
|
|
| 258 |
|
if (!$notrigger) { |
| 259 |
|
// Uncomment this and change MYOBJECT to your own tag if you |
| 260 |
|
// want this action to call a trigger. |
| 261 |
|
|
| 262 |
|
//// Call triggers |
| 263 |
|
//$result=$this->call_trigger('MYOBJECT_CREATE',$user); |
| 264 |
|
//if ($result < 0) $error++; |
| 265 |
|
//// End call triggers |
| 266 |
|
} |
| 267 |
|
} |
| 268 |
|
|
| 269 |
|
// Commit or rollback |
| 270 |
|
if ($error) { |