From: Michal Vaner Date: Mon, 1 Sep 2008 23:19:58 +0000 (+0200) Subject: Parent is notified about new item X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=133949149ef66c9a5b898a1d34b9eaf85856e38d;p=pciids.git Parent is notified about new item --- 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 {