← Back to team overview

mahara-contributors team mailing list archive

[Bug 1432641] A change has been merged

 

Reviewed:  https://reviews.mahara.org/4629
Committed: http://gitorious.org/mahara/mahara/commit/b4a4e5dc6ac834efde21f7e806c2c93a39746189
Submitter: Aaron Wells (aaronw@xxxxxxxxxxxxxxx)
Branch:    1.10_STABLE

commit b4a4e5dc6ac834efde21f7e806c2c93a39746189
Author: Son Nguyen <son.nguyen@xxxxxxxxxxxxxxx>
Date:   Tue Mar 31 07:34:04 2015 +1300

Fix bugs when changing view layout. Bug 1432641

Change-Id: I0ae87e94bd7ad723a19045598280a6c4880aa3d8
Signed-off-by: Son Nguyen <son.nguyen@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/1432641

Title:
  Changing view layout causes an error

Status in Mahara ePortfolio:
  Fix Committed
Status in Mahara 1.10 series:
  Fix Committed
Status in Mahara 1.8 series:
  Won't Fix
Status in Mahara 1.9 series:
  Fix Committed
Status in Mahara 15.04 series:
  Fix Committed
Status in Mahara 15.10 series:
  Fix Committed

Bug description:
  Steps to reproduce:

  1. Create a new view
  2. Select the layout with one column in first row and three columns in second
  3. Add two textboxes to each column, 8 textboxes total
  4. Change the layout to one row & one column

  This results in following error:

  [WAR] d1 (lib/dml.php:890) Failed to get a recordset: mysqli error: [1062: Duplicate entry '593-2-1-0' for key 'blocinst_vierowcolord_uk'] in adodb_throw(UPDATE "block_instance" SET "order" = 0  WHERE "order" = '1' AND "view" = '593' AND "row" = '2' AND "column" = 1, )
  Command was: UPDATE "block_instance" SET "order" = ?  WHERE "order" = ? AND "view" = ? AND "row" = ? AND "column" = ? and values was (0,1,593,2,1)

  Tested in 1.9.1 (Ubuntu 14.04.2 / MySQL 5.5.35 / Chrome 41.0.2272.89
  (64-bit)) and Mahara Demo (currently 1.10).

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


References