mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2026-11-30 22:02:57 -08:00
Fix title in template
This commit is contained in:
1 parent
82828f7f82
commit
6eb80eea2f
2 files changed
+14
-13
No files matched your search
-2
@@ -350,8 +350,6 @@ class TemplateEngineCompatible(database: DatabaseKDBX): TemplateEngine(database)
|
||||
private const val TEMPLATE_ATTRIBUTE_EXP_DATE = "@exp_date"
|
||||
private const val TEMPLATE_ATTRIBUTE_EXPIRES = "Expires"
|
||||
private const val TEMPLATE_ATTRIBUTE_NOTES = "Notes"
|
||||
private const val TEMPLATE_ATTRIBUTE_TOTP_SEED = "TOTP Seed"
|
||||
private const val TEMPLATE_ATTRIBUTE_TOTP_SETTING = "TOTP Settings"
|
||||
|
||||
private const val TEMPLATE_LABEL_VERSION = "_etm_template"
|
||||
private const val TEMPLATE_ENTRY_UUID = "_etm_template_uuid"
|
||||
|
||||
@@ -121,18 +121,21 @@ abstract class TemplateAbstractView<TEntryFieldView: GenericEntryFieldView, TDat
|
||||
|
||||
// Build each attribute
|
||||
templateSection.attributes.forEach { templateAttribute ->
|
||||
val fieldTag: String = getTagFromStandardTemplateAttribute(templateAttribute)
|
||||
if (templateAttribute.label != TemplateField.LABEL_TITLE) {
|
||||
val fieldTag: String =
|
||||
getTagFromStandardTemplateAttribute(templateAttribute)
|
||||
|
||||
val attributeView = buildViewForTemplateField(
|
||||
templateAttribute,
|
||||
Field(
|
||||
templateAttribute.label,
|
||||
ProtectedString(templateAttribute.protected, "")
|
||||
),
|
||||
fieldTag
|
||||
)
|
||||
// Add created view to this parent
|
||||
sectionView.addView(attributeView)
|
||||
val attributeView = buildViewForTemplateField(
|
||||
templateAttribute,
|
||||
Field(
|
||||
templateAttribute.label,
|
||||
ProtectedString(templateAttribute.protected, "")
|
||||
),
|
||||
fieldTag
|
||||
)
|
||||
// Add created view to this parent
|
||||
sectionView.addView(attributeView)
|
||||
}
|
||||
}
|
||||
// Add build view to parent
|
||||
templateContainerView.addView(sectionView)
|
||||
|
||||
Reference in new issue
Block a user