|
@@ -20,6 +20,7 @@ if ($extra[0] === "delete") {
|
|
|
|
|
|
$database = \Drupal::database();
|
|
$database = \Drupal::database();
|
|
|
|
|
|
|
|
+// remove flagging collection with null name
|
|
$this->output()->writeln("");
|
|
$this->output()->writeln("");
|
|
$this->output()->writeln("Flagging collection With NULL name cleaning");
|
|
$this->output()->writeln("Flagging collection With NULL name cleaning");
|
|
$fcfd_query = $database->select('flagging_collection_field_data', 'fcfd')
|
|
$fcfd_query = $database->select('flagging_collection_field_data', 'fcfd')
|
|
@@ -151,6 +152,14 @@ function delete_flagingcollection($fc, $database, $delete){
|
|
->condition('name', 'flag.flag.' . $fc->relatedflag)
|
|
->condition('name', 'flag.flag.' . $fc->relatedflag)
|
|
->execute();
|
|
->execute();
|
|
|
|
|
|
|
|
+ $database->delete('config')
|
|
|
|
+ ->condition('name', 'system.action.flag_action.'.$fc->relatedflag.'_flag')
|
|
|
|
+ ->execute();
|
|
|
|
+
|
|
|
|
+ $database->delete('config')
|
|
|
|
+ ->condition('name', 'system.action.flag_action.'.$fc->relatedflag.'_unflag')
|
|
|
|
+ ->execute();
|
|
|
|
+
|
|
|
|
|
|
$database->delete('flagging_collection_field_data')
|
|
$database->delete('flagging_collection_field_data')
|
|
->condition('id', $fc->id)
|
|
->condition('id', $fc->id)
|