← Back to team overview

mahara-contributors team mailing list archive

[Bug 1963608] A change has been merged

 

Reviewed:  https://reviews.mahara.org/12475
Committed: https://git.mahara.org/mahara/mahara/commit/c6cf227057c99c7725a734241dfa3ae746c96142
Submitter: Robert Lyon (robertl@xxxxxxxxxxxxxxx)
Branch:    21.04_DEV

commit c6cf227057c99c7725a734241dfa3ae746c96142
Author: Robert Lyon <robertl@xxxxxxxxxxxxxxx>
Date:   Fri Mar 4 19:13:58 2022 +1300

Bug 1963608: Set the default "allowcommentsbydefault" value on upgrade

Change-Id: I2553e93f86b3a18803eaf6d967162e80adb5fbe8
Signed-off-by: Robert Lyon <robertl@xxxxxxxxxxxxxxx>

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: mahara-contributors
https://bugs.launchpad.net/bugs/1963608

Title:
  Allow Comments by Default default value is not saved to the database
  on upgrade

Status in Mahara:
  Fix Committed
Status in Mahara 21.04 series:
  Fix Committed
Status in Mahara 21.10 series:
  Fix Committed
Status in Mahara 22.04 series:
  Fix Committed

Bug description:
  Mahara: 21.10
  OS: Linux
  DB: Postgres
  Browser: N/A

  When upgrading from 20.10 to 21.10, the new site wide default setting
  for 'Allow page comments by default' is not set to the default of
  'true' during the upgrade script.

  It is a new field that was introduced in bug 1922624. So it only
  affects 21.10 sites that get upgraded from previous versions.

  Searching for the data in the DB:

  select * from config c where c.field = 'allowcommentsbydefault';

  results in an empty record.

  
  A work-around is to:
  * From the site admin > site settings: unset "Allow page comments by default" and save
  * Then, set the field to true and save

  The database field is then saved.

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1963608/+subscriptions



References