From 133949149ef66c9a5b898a1d34b9eaf85856e38d Mon Sep 17 00:00:00 2001 From: Michal Vaner Date: Tue, 2 Sep 2008 01:19:58 +0200 Subject: [PATCH] Parent is notified about new item --- PciIds/Html/Changes.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PciIds/Html/Changes.pm b/PciIds/Html/Changes.pm index b5306eb..82e49c1 100644 --- a/PciIds/Html/Changes.pm +++ b/PciIds/Html/Changes.pm @@ -80,7 +80,7 @@ sub newItemSubmit( $$$$ ) { } elsif( $result ) { return genNewItemForm( $req, $args, $auth, $tables, $result, $data ); } - notify( $tables, $data->{'address'}->get(), $comName, 2, 0 ); + notify( $tables, $data->{'address'}->parent()->get(), $comName, 2, 0 );#Notify the parent (parent gets new items) tulog( $auth->{'authid'}, "Item created ".$data->{'address'}->get()." ".logEscape( $data->{'name'} )." ".logEscape( $data->{'note'} )." ".logEscape( $data->{'discussion'} )." $comName" ); return HTTPRedirect( $req, '/read/'.$data->{'address'}->get().'?action=list' ); } else { -- 2.39.2