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

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

Summary

Details

Icon Page properties
Content
... ... @@ -25,7 +25,7 @@
25 25   {{error}}この学校のページは既に存在します。[[既存のページを開く>>$targetPage]]{{/error}}
26 26   #else
27 27   ## 関連校として登録されているかチェック
28 - #set($affQuery = $services.query.hql("select doc.fullName, obj.affiliatedSchoolName from XWikiDocument doc, BaseObject bobj, StringProperty obj where bobj.name = doc.fullName and bobj.className = 'SeitokaiCode.SchoolClass' and obj.id.id = bobj.id and obj.id.name = 'affiliatedSchoolCode' and obj.value = :code").bindValue('code', $schoolCode))
28 + #set($affQuery = $services.query.hql("select doc.fullName, nameObj.value from XWikiDocument doc, BaseObject bobj, StringProperty obj, StringProperty nameObj where bobj.name = doc.fullName and bobj.className = 'SeitokaiCode.SchoolClass' and obj.id.id = bobj.id and obj.id.name = 'affiliatedSchoolCode' and obj.value = :code and nameObj.id.id = bobj.id and nameObj.id.name = 'affiliatedSchoolName'").bindValue('code', $schoolCode))
29 29   #set($affResults = $affQuery.execute())
30 30   #if($affResults && $affResults.size() > 0)
31 31   #set($affRow = $affResults.get(0))