fix(build): custom field API function names #448

Merged
jmiller merged 2 commits from dev into main 2026-06-04 11:54:12 +00:00
2 changed files with 13 additions and 13 deletions
+8 -8
View File
@@ -44,7 +44,7 @@ func ListCustomFields(ctx *context.APIContext) {
// GetCustomField gets a custom field definition by ID
func GetCustomField(ctx *context.APIContext) {
field, err := issues_model.GetCustomFieldByID(ctx, ctx.PathParamInt64("fieldId"))
field, err := issues_model.GetCustomFieldDefByID(ctx, ctx.PathParamInt64("fieldId"))
if err != nil {
ctx.APIErrorInternal(err)
return
@@ -76,7 +76,7 @@ func CreateCustomField(ctx *context.APIContext) {
Options: form.Options,
DefaultVal: form.DefaultValue,
}
if err := issues_model.CreateCustomField(ctx, field); err != nil {
if err := issues_model.CreateCustomFieldDef(ctx, field); err != nil {
ctx.APIErrorInternal(err)
return
}
@@ -86,7 +86,7 @@ func CreateCustomField(ctx *context.APIContext) {
// EditCustomField updates a custom field definition
func EditCustomField(ctx *context.APIContext) {
form := web.GetForm(ctx).(*api.EditCustomFieldOption)
field, err := issues_model.GetCustomFieldByID(ctx, ctx.PathParamInt64("fieldId"))
field, err := issues_model.GetCustomFieldDefByID(ctx, ctx.PathParamInt64("fieldId"))
if err != nil {
ctx.APIErrorInternal(err)
return
@@ -115,7 +115,7 @@ func EditCustomField(ctx *context.APIContext) {
field.DefaultVal = *form.DefaultValue
}
if err := issues_model.UpdateCustomField(ctx, field); err != nil {
if err := issues_model.UpdateCustomFieldDef(ctx, field); err != nil {
ctx.APIErrorInternal(err)
return
}
@@ -124,7 +124,7 @@ func EditCustomField(ctx *context.APIContext) {
// DeleteCustomField deletes a custom field and all its values
func DeleteCustomField(ctx *context.APIContext) {
field, err := issues_model.GetCustomFieldByID(ctx, ctx.PathParamInt64("fieldId"))
field, err := issues_model.GetCustomFieldDefByID(ctx, ctx.PathParamInt64("fieldId"))
if err != nil {
ctx.APIErrorInternal(err)
return
@@ -133,7 +133,7 @@ func DeleteCustomField(ctx *context.APIContext) {
ctx.APIErrorNotFound()
return
}
if err := issues_model.DeleteCustomField(ctx, field.ID); err != nil {
if err := issues_model.DeleteCustomFieldDef(ctx, field.ID); err != nil {
ctx.APIErrorInternal(err)
return
}
@@ -142,7 +142,7 @@ func DeleteCustomField(ctx *context.APIContext) {
// GetIssueCustomFields gets all custom field values for an issue
func GetIssueCustomFields(ctx *context.APIContext) {
values, err := issues_model.GetCustomFieldValues(ctx, ctx.PathParamInt64("index"))
values, err := issues_model.GetCustomFieldValuesMap(ctx, ctx.PathParamInt64("index"))
if err != nil {
ctx.APIErrorInternal(err)
return
@@ -166,7 +166,7 @@ func SetIssueCustomField(ctx *context.APIContext) {
fieldID := ctx.PathParamInt64("fieldId")
// Verify field belongs to this repo
field, err := issues_model.GetCustomFieldByID(ctx, fieldID)
field, err := issues_model.GetCustomFieldDefByID(ctx, fieldID)
if err != nil {
ctx.APIErrorInternal(err)
return
+5 -5
View File
@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='UTF-8'?>
<!-- Copyright (C) 2026 Moko Consulting <hello@mokoconsulting.tech>
SPDX-License-Identifier: GPL-3.0-or-later
VERSION: 05.17.00
VERSION: 05.19.00
-->
<updates>
@@ -87,13 +87,13 @@
<element>mokogitea</element>
<type>application</type>
<client>site</client>
<version>05.17.00</version>
<creationDate>2026-06-03</creationDate>
<version>05.19.00</version>
<creationDate>2026-06-04</creationDate>
<infourl title='MokoGitea'>https://git.mokoconsulting.tech/MokoConsulting/MokoGitea/releases/tag/stable</infourl>
<downloads>
<downloadurl type='full' format='zip'>https://git.mokoconsulting.tech/MokoConsulting/MokoGitea/releases/download/stable/mokogitea-05.17.00.zip</downloadurl>
<downloadurl type='full' format='zip'>https://git.mokoconsulting.tech/MokoConsulting/MokoGitea/releases/download/stable/mokogitea-05.19.00.zip</downloadurl>
</downloads>
<sha256>7f50295f58e207f1c2d2be92a172f4d077a4115ad1337c663e6f33e065e0cff9</sha256>
<sha256>a0ad5e0a2c3bc8a557bd37071f6891eeedfa8fa868b186ccd1262f6260fe22e9</sha256>
<tags><tag>stable</tag></tags>
<changelogurl>https://git.mokoconsulting.tech/MokoConsulting/MokoGitea/raw/branch/main/CHANGELOG.md</changelogurl>
<maintainer>Moko Consulting</maintainer>