← Back to team overview

mahara-contributors team mailing list archive

[Bug 1850749] A change has been merged

 

Reviewed:  https://reviews.mahara.org/11117
Committed: https://git.mahara.org/mahara/mahara/commit/59dc96a65ac59eac28d09d6855c448ba65b6f100
Submitter: Robert Lyon (robertl@xxxxxxxxxxxxxxx)
Branch:    20.04_STABLE

commit 59dc96a65ac59eac28d09d6855c448ba65b6f100
Author: Robert Lyon <robertl@xxxxxxxxxxxxxxx>
Date:   Thu Oct 31 18:50:05 2019 +1300

Bug 1850749: Should strip prefix from start of table name

In case the prefix matches part of core table name itself

And we also need to remove 'dbprefix' in
the function 'get_table_from_query'
instead of removing it in 'pseudo_trigger' and 'table_need_trigger'

behatnotneeded

Change-Id: Ic3726e0aa8b85a038f0bb6297c7e0f5667776572
Signed-off-by: Robert Lyon <robertl@xxxxxxxxxxxxxxx>
(cherry picked from commit 207353c46bd24e0d6c22efb0da42c3e9998966bd)

-- 
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/1850749

Title:
  Stripping prefix from table name should only happen at start of string

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

Bug description:
  In case the prefix also matches another part of table name we should
  explicitly indicate removing it from the beginning of the string - as
  a prefix can only be at the beginning

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


References