[freeside-commits] branch FREESIDE_3_BRANCH updated. dcd50e7b969dc0809b2456fdcca455a22af9f275
Ivan Kohler
ivan at freeside.biz
Mon May 23 19:45:21 PDT 2022
The branch, FREESIDE_3_BRANCH has been updated
via dcd50e7b969dc0809b2456fdcca455a22af9f275 (commit)
from 5a6ae35f94eef6fe8c274d6fd706614b430bf81d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit dcd50e7b969dc0809b2456fdcca455a22af9f275
Author: Ivan Kohler <ivan at freeside.biz>
Date: Mon May 23 19:45:20 2022 -0700
bulk remove package def options, RT#86028
diff --git a/bin/part_pkg-bulk_change b/bin/part_pkg-bulk_change
index c882954bf..b8c1b8dce 100755
--- a/bin/part_pkg-bulk_change
+++ b/bin/part_pkg-bulk_change
@@ -29,6 +29,12 @@ foreach my $part_pkg ( qsearch('part_pkg',\%search) ) {
my $part_pkg_option = qsearchs('part_pkg_option', \%hash);
+ unless ( defined $opt_v ) {
+ my $error = $part_pkg_option && $part_pkg_option->delete;
+ die $error if $error;
+ next;
+ }
+
if ( $part_pkg_option ) {
next if $part_pkg_option->optionvalue eq $opt_v;
$part_pkg_option->optionvalue($opt_v);
@@ -84,7 +90,7 @@ Search options:
Change options:
--o: part_pkg_option optionname
+-o: part_pkg_option optionname (use without -v to unset)
-v: part_pkg_option optionvalue
-----------------------------------------------------------------------
Summary of changes:
bin/part_pkg-bulk_change | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
More information about the freeside-commits
mailing list