From: Chris Sharp Date: Sun, 14 Jan 2018 19:35:06 +0000 (-0500) Subject: Point to the master database rather than the read-only database. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=7445f2f56d49af1c255de8cb89062912599b7cc3;p=contrib%2Fpines%2Freport-creator.git Point to the master database rather than the read-only database. Because of a misconfiguration in GenaSYS (since fixed), the QR configuration file pulled the reports *database* connection info rather than the *state_store* (e.g. master) database. Fixed with this change. Signed-off-by: Chris Sharp --- diff --git a/models/openilsConfig.class.php b/models/openilsConfig.class.php index 7064b86..0868002 100644 --- a/models/openilsConfig.class.php +++ b/models/openilsConfig.class.php @@ -11,11 +11,11 @@ class openilsConfig { } if (QR_PGSQL_USE_OPENSRF_XML_CONFIG) { - define ('QR_PGSQL_HOST', $xml->default->reporter->setup->database->host); - define ('QR_PGSQL_PORT', $xml->default->reporter->setup->database->port); - define ('QR_PGSQL_DBNAME', $xml->default->reporter->setup->database->db); - define ('QR_PGSQL_USER', $xml->default->reporter->setup->database->user); - define ('QR_PGSQL_PASSWORD', $xml->default->reporter->setup->database->pw); + define ('QR_PGSQL_HOST', $xml->default->reporter->setup->state_store->host); + define ('QR_PGSQL_PORT', $xml->default->reporter->setup->state_store->port); + define ('QR_PGSQL_DBNAME', $xml->default->reporter->setup->state_store->db); + define ('QR_PGSQL_USER', $xml->default->reporter->setup->state_store->user); + define ('QR_PGSQL_PASSWORD', $xml->default->reporter->setup->state_store->pw); } if (QR_MEMCACHE_USE_OPENSRF_XML_CONFIG) {