Skip to content
This repository was archived by the owner on Jul 2, 2025. It is now read-only.

Commit 76fe79b

Browse files
author
daniel
committed
fix action not correctly shown issue #944
1 parent c6323d5 commit 76fe79b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/PartKeepr/FrontendBundle/Resources/public/js/Components/SystemPreferences/Preferences/BarcodeScannerConfiguration.js

100644100755
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ Ext.define('PartKeepr.Components.SystemPreferences.Preferences.BarcodeScannerCon
7777
},
7878
{
7979
text: i18n("Action"), dataIndex: 'action', flex: 1,
80-
renderer: function (v)
80+
renderer: function (v, m, record)
8181
{
82-
if (v instanceof Ext.data.Model) {
83-
return v.get("name");
82+
if (record.get("action") instanceof Ext.data.Model) {
83+
return record.get("action").get("name");
8484
} else {
8585
return i18n("No action selected");
8686
}

0 commit comments

Comments
 (0)