[vhffs-dev] [1778] Fixed 500 on unexistent svn repository |
[ Thread Index |
Date Index
| More vhffs.org/vhffs-dev Archives
]
Revision: 1778
Author: beuss
Date: 2011-05-19 22:35:16 +0200 (Thu, 19 May 2011)
Log Message:
-----------
Fixed 500 on unexistent svn repository
Modified Paths:
--------------
trunk/vhffs-panel/svn/prefs.pl
Modified: trunk/vhffs-panel/svn/prefs.pl
===================================================================
--- trunk/vhffs-panel/svn/prefs.pl 2011-05-19 20:35:09 UTC (rev 1777)
+++ trunk/vhffs-panel/svn/prefs.pl 2011-05-19 20:35:16 UTC (rev 1778)
@@ -53,7 +53,6 @@
my $repo_name = $cgi->param("name");
my $svn = Vhffs::Services::Svn::get_by_reponame( $vhffs , $repo_name );
-my $group = Vhffs::Group::get_by_gid( $vhffs , $svn->{'owner_gid'} );
unless( defined $repo_name ) {
$panel->render('misc/message.tt', { message => gettext('CGI Error !') });
@@ -107,6 +106,7 @@
if($svn->get_status == Vhffs::Constants::WAITING_FOR_MODIFICATION) {
if($svn->commit > 0) {
+ my $group = Vhffs::Group::get_by_gid( $vhffs , $svn->{'owner_gid'} );
my $url = '/group/view.pl?group='.$group->get_groupname.'&msg='.gettext('Modifications applied. Please wait while your repository is being updated');
$panel->redirect($url); # will exit()
} else {