← Back to team overview

mahara-contributors team mailing list archive

[Bug 1432641] Re: Changing view layout causes an error

 

** Also affects: mahara/1.10
   Importance: Undecided
       Status: New

** Also affects: mahara/15.04
   Importance: High
     Assignee: Son Nguyen (ngson2000)
       Status: Fix Committed

** Also affects: mahara/1.9
   Importance: Undecided
       Status: New

** Also affects: mahara/15.10
   Importance: Undecided
       Status: New

** Also affects: mahara/1.8
   Importance: Undecided
       Status: New

** Changed in: mahara/15.10
       Status: New => Fix Committed

** Changed in: mahara/15.10
   Importance: Undecided => High

** Changed in: mahara/15.10
    Milestone: None => 15.10.0

** Changed in: mahara/1.9
    Milestone: None => 1.9.5

** Changed in: mahara/1.8
    Milestone: None => 1.8.7

** Changed in: mahara/1.10
    Milestone: None => 1.10.3

** Changed in: mahara/1.10
   Importance: Undecided => High

** Changed in: mahara/1.8
   Importance: Undecided => High

** Changed in: mahara/1.9
   Importance: Undecided => High

-- 
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:
  New
Status in Mahara 1.8 series:
  New
Status in Mahara 1.9 series:
  New
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