sumba 2.49.1 → 2.49.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,7 +14,7 @@ async function navDropdownUser () {
14
14
  } else text = req.t('guest')
15
15
  }
16
16
  const html = []
17
- const attr = omit(this.params.attr, ['text', 'noMenu'])
17
+ const attr = omit(this.params.attr, ['noMenu'])
18
18
  attr.dropdown = true
19
19
  attr.content = `${icon} ${text}`
20
20
  if (this.params.attr.noMenu) {
@@ -4,7 +4,7 @@ const list = {
4
4
  method: ['GET'],
5
5
  handler: async function (req, reply) {
6
6
  const { findRecord, getSchemaExt } = this.app.waibuDb
7
- const { getExcerpt } = this.app.bajoTemplate
7
+ const { createExcerpt } = this.app.lib.aneka
8
8
  const { schema } = await getSchemaExt(model, 'list')
9
9
  const options = { count: true }
10
10
  const list = await findRecord({ model, req, options })
@@ -13,7 +13,7 @@ const list = {
13
13
  schema.view.label = { subject: 'Your Message' }
14
14
  schema.view.format = {
15
15
  subject: (val, rec) => {
16
- return `<strong>${val}</strong><br />${getExcerpt(rec.message, 35)}`
16
+ return `<strong>${val}</strong><br />${createExcerpt({ content: rec.message, maxWords: 35 })}`
17
17
  }
18
18
  }
19
19
  return await reply.view('sumba.template:/help/trouble-tickets/list.html', { list, schema })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sumba",
3
- "version": "2.49.1",
3
+ "version": "2.49.3",
4
4
  "description": "Biz Suite for Bajo Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-11-20
4
+
5
+ - [2.49.3] Bug fix in `trouble-tickets/list.js`
6
+
7
+ ## 2026-11-16
8
+
9
+ - [2.49.2] Bug fix in `nav-dropdown-user.js` widget
10
+
3
11
  ## 2026-11-10
4
12
 
5
13
  - [2.49.1] Bug fix in `hook.js`