From 2482760609f857acd7eca361ee65ab9b5d14fc40 Mon Sep 17 00:00:00 2001 From: bach Date: Wed, 23 Feb 2022 11:16:15 +0100 Subject: [PATCH] fixed drush script --- cleanflaglist.script | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cleanflaglist.script b/cleanflaglist.script index bea8f6a..d45fa6d 100755 --- a/cleanflaglist.script +++ b/cleanflaglist.script @@ -72,7 +72,8 @@ $this->output()->writeln($fc_missing_relatedflag .' flagging_collection with mis function delete_flagingcollection($fc){ 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 $flifd_query = $database->select('flag_list_item_field_data', 'flifd') ->condition('flifd.flag_list', $fc->id) @@ -118,7 +119,8 @@ function delete_flagingcollection($fc){ ->execute(); } 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"); } } \ No newline at end of file