Commit graph

1450 commits

Author SHA1 Message Date
Kijin Sung
8c6beff859 Apply manager scopes to commonly used modules 2024-10-14 23:42:06 +09:00
Kijin Sung
75e9473724 Fix incompatibility with MySQL 8.0 2024-10-14 23:06:16 +09:00
Kijin Sung
47afd4848b Add optional $page parameter to DocumentItem->getComments() 2024-10-09 20:11:03 +09:00
Kijin Sung
453f83db7d Fix error message when leaving current file unchanged in extra vars 2024-10-09 02:36:28 +09:00
Kijin Sung
52c573fdba Skip extra var validation if manually inserted/updated 2024-10-09 01:47:21 +09:00
Kijin Sung
0398b64350 Display uploaded file name and link in extra vars section 2024-10-09 00:07:48 +09:00
Kijin Sung
50274a7f9b Support file upload in extra vars 2024-10-09 00:03:16 +09:00
Kijin Sung
3de4f786b7 Fix whitespace 2024-10-08 22:18:58 +09:00
Kijin Sung
b438666ea7 Validate required and strict extra vars on document insert and update 2024-10-08 22:17:00 +09:00
Kijin Sung
d237d9aabb Fix error when $selected_var is null 2024-10-08 21:59:28 +09:00
Kijin Sung
db4103b732 Implement is_strict and options fields 2024-10-08 21:46:56 +09:00
Kijin Sung
8fd72747fc Add is_strict and options columns to document_extra_keys table 2024-10-08 21:08:09 +09:00
Kijin Sung
e4c3c5ac6c Fix #2376 unnecessary header output in menu, document, layout modules 2024-07-15 10:14:37 +09:00
Hyeonguk Ryu
3474667943
Fix XML query IDs with their respective file names 2024-06-17 14:28:24 +09:00
Kijin Sung
c4fabb6182 Fix type error when third-party program passes array into getExtraKeys() or getExtraVars() #2355 2024-05-31 13:39:45 +09:00
Kijin Sung
7df5a84f11 Update category document count using +1/-1 diff instead of running COUNT(*) query every time 2024-05-04 21:50:00 +09:00
Kijin Sung
0a459eb528 Mark default category in bold #2335 2024-05-04 20:52:51 +09:00
Kijin Sung
07c2574c72 Fix #2321 return voted_count or blamed_count when vote is canceled 2024-05-04 20:43:33 +09:00
Kijin Sung
684b86a636 Fix #2335 allow selecting a category as default 2024-05-04 20:21:13 +09:00
Kijin Sung
4c523d686b Fix type error when module_srl or document_srl is null 2024-05-03 20:28:31 +09:00
Kijin Sung
55fe822b2b Fix #2320 incorrect class name in docblock 2024-04-24 01:43:07 +09:00
Kijin Sung
0952bd6b69 Change ExtraVar::getInstance() to ValueCollection 2024-04-16 21:47:04 +09:00
Kijin Sung
41f4eada9d Only add spaces in getContentText() before complete </p> and </div> tags, not </pre>
https://xetown.com/questions/1817630
2024-04-08 22:43:15 +09:00
Kijin Sung
5cfd348096 Clean up declared log if prevent_redeclare != "N" #2238 2024-03-28 21:38:42 +09:00
Kijin Sung
fa756b5169 Fix #2238 add option to control whether to allow redeclaring documents 2024-03-28 21:30:19 +09:00
Kijin Sung
7c8e76b727 Fix list_order and update_order not bumped when updating a temporarily saved document (2.1.5 regression)
https://xetown.com/questions/1814863
2024-03-19 22:45:44 +09:00
Kijin Sung
bae8954e42 Remove unnecessary count query in getDocuments() 2024-03-12 23:19:31 +09:00
Kijin Sung
01c3f5cf08 Fill thumbnail defaults in getDocumentConfig() 2024-02-05 12:52:05 +09:00
Kijin Sung
9eea71631a Merge branch 'security/rve-2024-1' into develop 2024-01-30 23:45:17 +09:00
Kijin Sung
56af0cb5c3 Use strict equality to check if title is empty 2024-01-30 20:44:30 +09:00
Kijin Sung
7cb9b8c786 RVE-2024-1 also apply escape() when updating document 2024-01-30 20:43:39 +09:00
Kijin Sung
bb1699f577
Merge pull request #2264 from kkigomi/input-number
관리페이지 설정 폼에서 숫자 입력 항목 필드의 type 을 number 로 변경
2024-01-20 13:29:55 +09:00
Kijin Sung
152fb4e753 RVE-2024-1 always escape DocumentItem->getTitleText() 2024-01-20 00:40:36 +09:00
Kijin Sung
a3650bb899 RVE-2024-1 missing escape of autogenerated document title 2024-01-20 00:39:19 +09:00
Kijin Sung
e44f5ef434 Fix inncorrect read count for anonymous documents 2024-01-16 21:31:37 +09:00
kkigomi
5486ec28e2
관리페이지 설정 폼에서 숫자 입력 항목 필드의 type 을 number 로 변경
음수 및 `0`으로 입력되지 않아야 할 항목에 최소 값을 `0` 또는 `1`로 설정
2024-01-10 00:12:21 +09:00
Kijin Sung
6c113c22ed Fix unnecessary assignment by reference, which causes E_NOTICE 2024-01-04 10:25:25 +09:00
Kijin Sung
ca4e2d60e3 Fix #2221 add document.publishDocument (before/after) triggers that cover both insert and update 2024-01-01 17:34:49 +09:00
Kijin Sung
9aaf785309 Fix partial search result in admin document list and member document list 2023-12-30 20:56:24 +09:00
Kijin Sung
c7811969ba Fix #2242 show documents of all status in dispDocumentAdminList 2023-12-30 20:49:20 +09:00
Kijin Sung
6486462b73 Fix #2245 don't change file state when moving document or comment to trash 2023-12-30 20:33:00 +09:00
Kijin Sung
3b5fd1cfbb Fix #2222 missing English translation for document module config 2023-12-01 00:07:22 +09:00
Kijin Sung
c2311f88be Fix #2217 call getDocumentList (after) trigger even if there are no results 2023-11-28 00:06:21 +09:00
Kijin Sung
8176bdb845 Fix undefined variables in several module config templates 2023-11-09 01:37:38 +09:00
Kijin Sung
7160b1aa58 Fix array to string conversion when other boards are included 2023-11-08 23:30:00 +09:00
Kijin Sung
2c0589ce4b Fix #2208 unused variable in getDocumentTrashList() 2023-11-08 22:46:45 +09:00
Kijin Sung
d02ea160c1 Fix undefined variable in getThumbnail() 2023-11-05 13:30:55 +09:00
Kijin Sung
c58b13c459 Fix buttons being crushed when loading temp saved document with long content 2023-10-27 10:20:19 +09:00
Kijin Sung
6e4c428420 Fix title_bold and other flags not being unset when updated 2023-10-18 20:45:14 +09:00
Kijin Sung
926aa1bc7d Remove unnecessary default values for update queries
업데이트 쿼리를 할 때 해당 컬럼에 넣을 값을 넘기지 않으면 기본값이 입력되어
의도치 않게 데이터가 변경될 가능성이 있습니다.
(예: ipaddress를 넘기지 않으면 현재 접속자의 IP 주소로 대체됩니다.)
이런 문제를 방지하기 위해 불필요한 기본값을 모두 제거합니다.
2023-10-04 21:13:56 +09:00