Commit graph

49057 commits

Author SHA1 Message Date
Sattam
a88f2a8fc5
fix: prioritize English language selection for Guest user despite additional browser language settings
Description:
- Resolved an issue where the system incorrectly activated a non-English language for Guest users, even when English was the primary language in the browser settings.
- The bug occurred when additional languages (e.g., Arabic) were configured in the browser and one of those languages was already enabled in Frappe.
- Ensured that English is prioritized as the default language for Guest users when it is present in the browser language list, regardless of other enabled languages.
- Added a fix to explicitly enable English language for Guest users to prevent unintended language switching.

Steps to Reproduce:
- Create a new clean site and add additional languages (e.g., Arabic) in the browser settings.
- Ensure the additional language (e.g., Arabic) is already enabled in the database, which is by default.
- Observe that the system switches to the non-English translation (e.g., Arabic) for Guest users, even if English is the primary language in the browser settings.

Root Cause Analysis:
- Initially suspected `translate.py` was involved in language resolution.
- Checked enabled languages at the console using:
  `frappe.get_all("Language", filters={"enabled": 1}, pluck="name")`
  Result: ['fr', 'fa', 'es', 'de', 'ar']
- Identified that English was not enabled in the system, despite being a default requirement.
- Traced the issue to `languages.csv`, where English was not included among the enabled languages.

Fix:
- Enabled English in `languages.csv` to ensure it is included among the supported languages.
- This ensures English is chosen when included in the browser settings, resolving the issue.
2025-03-11 04:02:40 +03:00
Ejaaz Khan
721af96f04
Merge pull request #31630 from iamejaaz/31611-link-field-export
fix: custom column export issue in report
2025-03-10 21:35:01 +05:30
Ankush Menat
14006b2c25
refactor: trim __init__.py (#31575)
* refactor: move init.py utils to utils/*

* refactor: split messages.py from init.py
2025-03-10 21:12:19 +05:30
Ankush Menat
6946e3353f refactor: split messages.py from init.py 2025-03-10 21:02:13 +05:30
Ankush Menat
ae4e2ede1a refactor: move init.py utils to utils/* 2025-03-10 21:01:14 +05:30
Ejaaz Khan
ea90228748 fix: custom column export issue in report 2025-03-10 20:46:55 +05:30
Ankush Menat
8d15d28463
fix: check permission on new doc (#31626)
User might only have "only if creator" permission so checking on doctype
will incorrectly flag it.

Not sure if there's any better/simpler way to handle this. This is weird
edge case on how files operate.
2025-03-10 13:30:13 +00:00
Soham Kulkarni
4f823f5a10
Merge pull request #31612 from sokumon/respect-precision
fix: add currency precision formatting while exporting report
2025-03-10 17:32:35 +05:30
sokumon
74fd714277 fix: change if to elif 2025-03-10 16:49:20 +05:30
sokumon
77e318d9d6 fix: small change 2025-03-10 15:26:38 +05:30
sokumon
2b8a6352ea fix: add all formating fields inside one function 2025-03-10 14:54:54 +05:30
Akhil Narang
f518ea34de
Merge pull request #31615 from tarunps/fix/pub-email-attachment-attachment
fix(email_account): make attachments public by default
2025-03-10 14:52:46 +05:30
DHia' A. SHalabi
d3ffa75288
Merge pull request #31602 from dhiashalabi/fix/update-popup-msg-format
refactor: Use f-string for version update message formatting
2025-03-10 14:51:15 +05:30
Akhil Narang
6d08df2653
Merge pull request #31584 from akhilnarang/fix-field-sanitisation
fix(db_query): improve regex
2025-03-10 14:34:54 +05:30
Tarun Pratap Singh
88bf5a74a7 fix(email_account): make attachments public by default 2025-03-10 14:26:52 +05:30
sokumon
1d096040d8 fix: change condition 2025-03-10 13:20:33 +05:30
sokumon
d511499c1a fix: add currency precision formatting while exporting report 2025-03-10 13:02:56 +05:30
Hicham Dachir
381ee5682c
fix: add newline to JSON exports
Add empty line in the end of auto generate/update doctype files, in order to follow the python code style
2025-03-10 06:44:25 +00:00
Ejaaz Khan
1c3ec9bf81
Merge pull request #31581 from tarunps/fix/use-more-filter-types
fix(list_view): use more filter type values to set value on new entry
2025-03-10 12:05:31 +05:30
Tarun Pratap Singh
2012c5478f fix(list_view): use more filter type values to set value on new entry 2025-03-10 11:39:30 +05:30
Ejaaz Khan
f417acaef2
Merge pull request #31552 from CaioMatins/fix-dashboard-permission-query
fix: correct permission query condition in Dashboard
2025-03-09 10:46:16 +05:30
Ejaaz Khan
20ac9a77aa
Merge pull request #31599 from iamejaaz/31598-minor-grid-boder
fix(minor): border radius issue on grid
2025-03-09 06:27:23 +05:30
Ejaaz Khan
2b80a33b9a fix(minor): border radius issue on grid 2025-03-09 05:53:34 +05:30
Ejaaz Khan
21300127ce
Merge pull request #31594 from iamejaaz/32254-auto-email-bg
perf: queue auto email report separately
2025-03-09 01:25:27 +05:30
Ejaaz Khan
a4d44a3eca perf: queue auto email report separately 2025-03-09 01:10:33 +05:30
Soham Kulkarni
7d1718c54e
Merge pull request #31593 from sokumon/translate-report-data
fix: add check to see all variants of english language
2025-03-08 19:57:54 +05:30
sokumon
e73e43a9a7 fix: add check to see all variants of english 2025-03-08 19:21:22 +05:30
Sagar Vora
9e15327a31
Merge pull request #31590 from sagarvora/update-if-needed
perf: restrict doctypes to update and fetch fields in one go
2025-03-08 14:37:37 +05:30
Sagar Vora
9a0636bf91 perf: fetch existing fields beforehand 2025-03-08 14:28:19 +05:30
Sagar Vora
7503db4160 perf: restrict doctypes to update when creating custom fields 2025-03-08 14:13:23 +05:30
Suraj Shetty
e34a820256
Merge pull request #31069 from maharshivpatel/add_pdf_backend_hook
feat: added hook to use chrome pdf generator
2025-03-08 12:50:09 +05:30
Maharshi Patel
15b025f03b chore: move get_print to print_utils.py
paying my share of taxes #28940
2025-03-08 11:40:31 +05:30
Ejaaz Khan
7754162896
Merge pull request #31589 from iamejaaz/sticky-datatable-fix
chore: update datatable version
2025-03-07 18:43:31 +05:30
Ejaaz Khan
173fe402a6 chore: update datatable version 2025-03-07 17:33:01 +05:30
Soham Kulkarni
cac8423476
Merge pull request #31585 from sokumon/attach-control
fix: align attach control actions
2025-03-07 17:27:42 +05:30
Shariq Ansari
57d6fba3e7
Merge pull request #31544 from shariquerik/autoname-title-same
fix: do not allow renaming if autoname & title_field is same
2025-03-07 17:13:16 +05:30
sokumon
0042c56a40 fix: align attach control actions 2025-03-07 17:04:42 +05:30
Akhil Narang
bada8cabcb
fix(db_query): improve regex
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2025-03-07 16:57:27 +05:30
Ankush Menat
f8dee98a33
fix: override sanitized column name (#31576) 2025-03-07 15:29:00 +05:30
Akhil Narang
277c5d6ad4
Merge pull request #31522 from akhilnarang/opt-out-host-override
fix(get_url): allow disabling host header override
2025-03-07 13:27:44 +05:30
Ankush Menat
77852fd11f
fix: search instead of match (#31557)
Match isn't correct usage here
2025-03-07 06:59:23 +00:00
gavin
38fd079be5
Merge pull request #31296 from hyaray/patch-10
fix: Translate {doctype} in realtime message for reportview.delete_items
2025-03-06 17:25:49 +01:00
hyaray
7fd0516524
fix: Translate {doctype} in realtime message for reportview.delete_items 2025-03-06 17:15:49 +01:00
gavin
dab863db2c
Merge pull request #31514 from marination/isolated-headlines-v2
fix: Faulty HTML tag check condition in `show_message`
2025-03-06 17:08:21 +01:00
gavin
4a9915c70f
Merge pull request #31410 from gavindsouza/oauth-on_session_creation
fix: Run on_session_creation on OAuth logins
2025-03-06 15:45:18 +01:00
CaioMatins
5a3eb95700
fix: correct permission query condition in Dashboard 2025-03-06 10:00:46 -03:00
Ejaaz Khan
9400dd0c75
Merge pull request #31062 from aerele/exported-report-name
fix: set report name as pdf name
2025-03-06 16:48:27 +05:30
marination
90c98e488e fix: Use is_html instead of regex
- This util can be a single point of improvement in the future
2025-03-06 11:34:42 +01:00
Suraj Shetty
902cb722ba
Merge branch 'develop' into add_pdf_backend_hook 2025-03-06 13:18:09 +05:30
Suhail
b8ee712cc5
feat: add login via fc button in login page (#31541)
* refactor: show login with frappe cloud button in login page

instead of throwing the user to site-login page, show them all the options

* fix: use is_frappecloud method to check if site is on fc

since `is_fc_site` checks if the user is a system manager and a guest user is not one

* refactor: use a better fc logo

also show login with fc button only for users coming from new signup flow (for now)

* fix: logo alignment with text
2025-03-06 06:59:22 +00:00