]> mj.ucw.cz Git - pciids.git/commitdiff
Parent is notified about new item
authorMichal Vaner <vorner@ucw.cz>
Mon, 1 Sep 2008 23:19:58 +0000 (01:19 +0200)
committerMichal Vaner <vorner@ucw.cz>
Mon, 1 Sep 2008 23:19:58 +0000 (01:19 +0200)
PciIds/Html/Changes.pm

index b5306eb4b59bdf29ff81032d76bd7b36a6a31608..82e49c145b0fc3b0d62e8c52a6fef6897cb4e059 100644 (file)
@@ -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 {