Skip to content

Commit 5ce52bc

Browse files
committed
Merge remote-tracking branch 'origin/release26.3-SNAPSHOT' into 26.3_fb_sql_server_migration_1
2 parents 5c2544f + a705403 commit 5ce52bc

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

core/webapp/Ext.ux.form.LovCombo.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,10 @@ Ext.ux.form.LovCombo = Ext.extend(Ext.form.ComboBox, {
293293
this.store.suspendEvents(true);
294294
this.store.clearFilter();
295295
this.store.each(function (r) {
296+
// GH Issue 1266: String() (not JSON.stringify) so native RegExp.escape doesn't throw on a
297+
// numeric valueField, while string values stay unquoted to match getCheckedValue() output.
296298
var checked = !(!v.match(
297-
'(^|' + this.separator + ')' + RegExp.escape(JSON.stringify(r.get(this.valueField)))
299+
'(^|' + this.separator + ')' + RegExp.escape(String(r.get(this.valueField)))
298300
+ '(' + this.separator + '|$)'));
299301
r.set(this.checkField, checked);
300302
}, this);

mothership/src/org/labkey/mothership/MothershipController.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1923,8 +1923,9 @@ public void testUpdateInstallationContainerScoping() throws Exception
19231923
public void testUpdateStackTraceContainerScoping() throws Exception
19241924
{
19251925
User admin = getAdmin();
1926-
Container folderA = createContainer("A");
1927-
Container folderB = createContainer("B");
1926+
MothershipModule module = ModuleLoader.getInstance().getModule(MothershipModule.class);
1927+
Container folderA = createContainer("A", module);
1928+
Container folderB = createContainer("B", module);
19281929

19291930
// An exception stack trace that lives in folder B (StackTraceHash is derived from the stack trace text)
19301931
ExceptionStackTrace st = new ExceptionStackTrace();

0 commit comments

Comments
 (0)