← Back to team overview

mahara-contributors team mailing list archive

[Bug 1904352] A change has been merged

 

Reviewed:  https://reviews.mahara.org/11449
Committed: https://git.mahara.org/mahara/mahara/commit/238eb5724dd2ff6d4a63ba214961bbaa585e12a9
Submitter: Lisa Seeto (lisaseeto@xxxxxxxxxxxxxxx)
Branch:    master

commit 238eb5724dd2ff6d4a63ba214961bbaa585e12a9
Author: Robert Lyon <robertl@xxxxxxxxxxxxxxx>
Date:   Mon Nov 16 12:20:15 2020 +1300

Bug 1904352: Clean up bad navigation blocks in database

Change-Id: Ic770ff00935f951cdc30c6a52e70bb96ed96f01f
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: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1904352

Title:
  Adding navigation block to a collection can cause loss of data

Status in Mahara:
  Fix Committed
Status in Mahara 19.10 series:
  Fix Committed
Status in Mahara 20.04 series:
  Fix Committed
Status in Mahara 20.10 series:
  Fix Committed
Status in Mahara 21.04 series:
  Fix Committed

Bug description:
  When doing the following scenario the display of a page can be
  adversely affected

  1) Have a collection of pages that were made before the new grid
  layout was added, eg before September 2019, that don't have navigation
  blocks in them. A good test is to have an image block on each page.

  2) Go to edit one of the pages - it should prompt you to convert the
  page to the new grid layout - choose the 'Accept' option

  3) Add a navigation block to the page and set 'Add to all pages' to
  'Yes'

  4) Save the block

  Now go view the collection - the page you edited should look normal
  but the other pages will now be missing all blocks except the
  Navigation one

  Luckily the data is not deleted but just that the new navigation block
  for those pages has been saved as a block with new grid layout
  information so the page is rendered as a new layout page.

  What we need to do is save the navigation block onto the pages in old
  layout way so that it all displays again as expected.

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


References