Quellcode durchsuchen

fixed drush script

bach vor 2 Jahren
Ursprung
Commit
2482760609
1 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen
  1. 4 2
      cleanflaglist.script

+ 4 - 2
cleanflaglist.script

@@ -72,7 +72,8 @@ $this->output()->writeln($fc_missing_relatedflag .' flagging_collection with mis
 
 
 function delete_flagingcollection($fc){
 function delete_flagingcollection($fc){
   if($delete){
   if($delete){
-    $this->output()->writeln("Deleting flagging collection " . $fc->id);
+    // $this is not working in function
+    // $this->output()->writeln("Deleting flagging collection " . $fc->id);
     // get flag list items
     // get flag list items
     $flifd_query = $database->select('flag_list_item_field_data', 'flifd')
     $flifd_query = $database->select('flag_list_item_field_data', 'flifd')
     ->condition('flifd.flag_list', $fc->id)
     ->condition('flifd.flag_list', $fc->id)
@@ -118,7 +119,8 @@ function delete_flagingcollection($fc){
       ->execute();
       ->execute();
 
 
   } else {
   } else {
-    $this->output()->writeln("In order to actually delete fault flagging collection data please use delete option");
+    // $this is not working in function
+    // $this->output()->writeln("In order to actually delete fault flagging collection data please use delete option");
   }
   }
 
 
 }
 }