Revert "apply pattern when username change" for pvc-desktop-view.js

This reverts the changes to pvc-desktop-view.js from commit 96315d5.

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2026-03-11 22:08:13 +08:00
parent 96315d5f8f
commit 990c05c1d3

View File

@@ -1,25 +1,6 @@
(function () {
"use strict";
/**
* 新規登録・編集画面保存時の処理
* 氏名に複数のユーザーが設定されている場合は、エラーを表示して保存をキャンセルする
*/
kintone.events.on(
["app.record.create.submit", "app.record.edit.submit"],
function (event) {
const record = event.record;
// 氏名に複数のユーザーが設定されている場合は、エラーを表示して保存をキャンセル
if (record.氏名.value.length > 1) {
event.error = "氏名にユーザーが複数設定されています";
return event;
}
return event;
}
);
/**
* 一覧画面の編集保存時の処理
*/