Now trimming decimal gps values to not be truncated in database
This commit is contained in:
@@ -107,6 +107,12 @@ class ADBWohneinheit extends mfBaseModel {
|
||||
$old_status = new ADBStatus($this->_old_data->status_id);
|
||||
$new_status = new ADBStatus($this->data->status_id);
|
||||
$logstr .= "| '$key' => FROM '".$this->_old_data->$key."' TO '".$this->data->$key."' [".$old_status->code." => ".$new_status->code."]";
|
||||
} elseif($key = "external_data" && $this->_old_data->external_data && $this->external_data) {
|
||||
$old_data = json_decode($this->_old_data->external_data);
|
||||
$new_data = json_decode($this->external_data);
|
||||
if(json_encode($old_data) !== json_encode($new_data)) {
|
||||
$logstr .= "| '$key' => FROM '".$this->_old_data->$key."' TO '".$this->data->$key."'";
|
||||
}
|
||||
} else {
|
||||
$logstr .= "| '$key' => FROM '".$this->_old_data->$key."' TO '".$this->data->$key."'";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user