View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
133 | PHPOF2 | Default | public | 21 Dec 2008 22:24 | 5 Jan 2009 16:33 |
Reporter | mkierat | Assigned To | timj | ||
Priority | high | Severity | crash | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Product Version | 0.10.1 | ||||
Target Version | 0.11.0 | Fixed in Version | 0.11.0 | ||
Summary | 133: Fatal error storing LOB data if audit driver not loaded | ||||
Description | When the audit driver is not loaded a warning and then a fatal error occurs when storing lob data. Index: DBRow/Audited.php =================================================================== --- DBRow/Audited.php (revision 13311) +++ DBRow/Audited.php (working copy) @@ -71,8 +71,12 @@ public function storeLOBData(&$data, $data_column) { - $changes = array($data_column => '[Data changed]'); - $this->db->phpof2_auditor->recordEvent(PHPOF2_Audit_Interface::EVENT_TYPE_UPDATE, $this->table->name, $this->serialisePriKey(), $this->_getAuditOwner(), $this->audit_note, $changes); + //check if audit enabled + if (!$this->isAuditEnabled()) { + $changes = array($data_column => '[Data changed]'); + $this->db->phpof2_auditor->recordEvent(PHPOF2_Audit_Interface::EVENT_TYPE_UPDATE, $this->table->name, $this->serialisePriKey(), $this->_getAuditOwner(), $this->audit_note, $changes); + } + parent::storeLOBData($data, $data_column); $this->_forceInitChangeRecording(); } | ||||
Tags | No tags attached. | ||||
Date Modified | Username | Field | Change |
---|---|---|---|
21 Dec 2008 22:24 | timj | New Issue | |
21 Dec 2008 22:25 | timj | Reporter | timj => mkierat |
21 Dec 2008 22:25 | timj | Assigned To | => timj |
21 Dec 2008 22:25 | timj | Status | new => assigned |
21 Dec 2008 22:25 | timj | Target Version | => 0.10.2 |
21 Dec 2008 22:26 | timj | Target Version | 0.10.2 => 0.11.0 |
29 Dec 2008 16:52 | timj | Note Added: 155 | |
29 Dec 2008 16:52 | timj | Status | assigned => resolved |
29 Dec 2008 16:52 | timj | Fixed in Version | => 0.11.0 |
29 Dec 2008 16:52 | timj | Resolution | open => fixed |
5 Jan 2009 16:33 | timj | Status | resolved => closed |