fix: Removed debug breaking update

pull/3323/head v2.4.92
iglocska 2018-06-07 21:43:30 +02:00
parent e3eb71b29a
commit 6eb4e49f2c
1 changed files with 2 additions and 5 deletions

View File

@ -24,11 +24,8 @@ class GalaxyElement extends AppModel{
parent::beforeValidate();
return true;
}
public function update($galaxy_id, $oldClusters, $newClusters) {
debug($oldClusters);
debug($newClusters);
throw new Exception();
$elementsToSave = array();
// Since we are dealing with flat files as the end all be all content, we are safe to just drop all of the old clusters and recreate them.
foreach ($oldClusters as $oldCluster) {
@ -49,7 +46,7 @@ class GalaxyElement extends AppModel{
$tempCluster[] = array('key' => $key, 'value' => $value);
}
}
foreach ($tempCluster as $key => $value) {
$tempCluster[$key]['galaxy_cluster_id'] = $oldCluster['GalaxyCluster']['id'];
}