From: Michal Vaner Date: Fri, 10 Oct 2008 06:07:23 +0000 (+0200) Subject: Default auto-notification to history X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=3b9773cd93e5f5610b3028b563437e145b79b949;p=pciids.git Default auto-notification to history --- diff --git a/PciIds/Html/Changes.pm b/PciIds/Html/Changes.pm index 658db0f..0230a8e 100644 --- a/PciIds/Html/Changes.pm +++ b/PciIds/Html/Changes.pm @@ -100,7 +100,7 @@ sub newItemSubmit( $$$$ ) { return genNewItemForm( $req, $args, $auth, $tables, $result, $data ); } notify( $tables, $data->{'address'}->parent()->get(), $comName, 2, 0 );#Notify the parent (parent gets new items) - $tables->submitNotification( $auth->{'authid'}, $data->{'address'}->get(), { 'recursive' => 0, 'notification' => 1, 'way' => 0 } ) if( defined $data->{'subscribe'} && $data->{'subscribe'} eq 'subscribe' ); + $tables->submitNotification( $auth->{'authid'}, $data->{'address'}->get(), { 'recursive' => 0, 'notification' => 0, 'way' => 0 } ) if( defined $data->{'subscribe'} && $data->{'subscribe'} eq 'subscribe' ); 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 { diff --git a/scripts/mailbot b/scripts/mailbot index 4c7712b..1cbd2e0 100755 --- a/scripts/mailbot +++ b/scripts/mailbot @@ -79,7 +79,7 @@ sub submitItem( $$$$$ ) { tlog( "mailbot: History created $hid $id ".logEscape( $name )." ".logEscape( $description )." ".logEscape( $text ) ); notify( $tables, $id, $hid, $created ? 2 : 1, $created ? 0 : 1 ); if( !$tables->notifExists( $author, $id ) ) { - $tables->submitNotification( $author, $id, { 'recursive' => 0, 'notification' => 1, 'way' => 0 } ); + $tables->submitNotification( $author, $id, { 'recursive' => 0, 'notification' => 0, 'way' => 0 } ); } }