Modified: trunk/CHANGES
===================================================================
--- trunk/CHANGES 2010-11-10 13:16:59 UTC (rev 5345)
+++ trunk/CHANGES 2010-11-10 14:25:47 UTC (rev 5346)
@@ -6,6 +6,7 @@
FIXES:
Fixed servicegroup popup list for service check new page
Fixed systempreferences changes setting configuration status light
+ Fixed showing welcome page when first logged into Opsview for admin user
3.9.1.5340 8th November 2010
FIXES:
Modified: trunk/opsview-core/import/initial_opsview.sql
===================================================================
--- trunk/opsview-core/import/initial_opsview.sql 2010-11-10 13:16:59 UTC (rev 5345)
+++ trunk/opsview-core/import/initial_opsview.sql 2010-11-10 14:25:47 UTC (rev 5346)
@@ -144,7 +144,7 @@
LOCK TABLES `contacts` WRITE;
/*!40000 ALTER TABLE `contacts` DISABLE KEYS */;
-INSERT INTO `contacts` (`id`, `fullname`, `name`, `realm`, `encrypted_password`, `language`, `description`, `role`, `all_hostgroups`, `all_servicegroups`, `show_welcome_page`, `uncommitted`) VALUES (1,'Administrator','admin','local','$apr1$SUR3Kcd8$CkJfpqvqy3r.6rzawNwCS.','','System Administrator',10,1,1,0,0);
+INSERT INTO `contacts` (`id`, `fullname`, `name`, `realm`, `encrypted_password`, `language`, `description`, `role`, `all_hostgroups`, `all_servicegroups`, `show_welcome_page`, `uncommitted`) VALUES (1,'Administrator','admin','local','$apr1$SUR3Kcd8$CkJfpqvqy3r.6rzawNwCS.','','System Administrator',10,1,1,1,0);
/*!40000 ALTER TABLE `contacts` ENABLE KEYS */;
UNLOCK TABLES;
Modified: trunk/opsview-core/t/000setupdb.t
===================================================================
--- trunk/opsview-core/t/000setupdb.t 2010-11-10 13:16:59 UTC (rev 5345)
+++ trunk/opsview-core/t/000setupdb.t 2010-11-10 14:25:47 UTC (rev 5346)
@@ -82,6 +82,8 @@
is( $connections->{"opsview"}->selectrow_array("SELECT COUNT(*) FROM servicechecks WHERE uncommitted=1"), 0, "No uncommitted servicechecks" );
is( $connections->{"opsview"}->selectrow_array("SELECT COUNT(*) FROM hosttemplates WHERE uncommitted=1"), 0, "No uncommitted hosttemplates" );
+is( $connections->{"opsview"}->selectrow_array("SELECT COUNT(*) FROM contacts WHERE show_welcome_page=0"), 0, "Welcome page to be shown to everyone" );
+
my @output = `installer/upgradedb.pl`;
my $num = grep /already up to date/, @output;
is( $num, 4, "Test if new installs cause an upgrade - if fails, probably db_* not updated with right version number" ) || print "Output:\...@output\n";