This website works better with JavaScript.
Home
Explore
Help
Sign In
anoopmb
/
frappe
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Merge pull request
#1999
from nabinhait/match_condition_fix
[fix] Set user as session user if not mentioned in match conditions
version-14
Nabin Hait
9 years ago
committed by
GitHub
parent
7bfaf90fd8
f050cb27e3
commit
03b29500d7
1 changed files
with
2 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-0
frappe/model/db_query.py
+ 2
- 0
frappe/model/db_query.py
View File
@@ -337,6 +337,8 @@ class DatabaseQuery(object):
self.match_filters = []
self.match_conditions = []
only_if_shared = False
if not self.user:
self.user = frappe.session.user
if not self.tables: self.extract_tables()
Write
Preview
Loading…
Cancel
Save