Last modified by Super Admin on 2026/03/22 00:39

From version Icon 36.1 Icon
edited by Super Admin
on 2026/03/18 20:41
Change comment: There is no comment for this version
To version Icon 37.1 Icon
edited by Super Admin
on 2026/03/18 20:43
Change comment: There is no comment for this version

Summary

Details

Icon Page properties
Content
... ... @@ -223,7 +223,14 @@
223 223  
224 224   // 関連校チェック(他校の関連校として登録されているか確認)
225 225   var affiliatedCheck = fetch('$request.contextPath/bin/view/SeitokaiCode/CheckAffiliated?code=' + encodeURIComponent(school.code) + '&outputSyntax=plain')
226 - .then(function(r) { return r.ok ? r.json() : { found: false }; })
226 + .then(function(r) { return r.ok ? r.text() : ''; })
227 + .then(function(t) {
228 + try {
229 + var jsonEnd = t.indexOf('}');
230 + if (jsonEnd >= 0) return JSON.parse(t.substring(0, jsonEnd + 1));
231 + } catch(e) {}
232 + return { found: false };
233 + })
227 227   .catch(function() { return { found: false }; });
228 228  
229 229   Promise.all([duplicateCheck, affiliatedCheck]).then(function(results) {