mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-22 14:04:01 +00:00
fix update group rate, issue related to the logdata trait, it was trying to log pivot columns
This commit is contained in:
@@ -28,6 +28,13 @@ trait LogData
|
||||
$originalData[$relationshipColumn] = $originalData['id'];
|
||||
unset($originalData['id']);
|
||||
|
||||
// remove pivot columns
|
||||
foreach($originalData as $key => $row){
|
||||
if(str::startsWith($key, 'pivot_')){
|
||||
unset($originalData[$key]);
|
||||
}
|
||||
}
|
||||
|
||||
if (!Schema::hasTable($tableName)) {
|
||||
DB::statement('CREATE TABLE '.$tableName.' LIKE '.$model->table);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user