Commit graph

1362 commits

Author SHA1 Message Date
mergify[bot]
4e3706763a
Merge pull request #10040 from Thunderbottom/data-validation-fix
fix: skip validation if oldfieldtype is not set to data
2020-04-24 17:26:11 +00:00
Suraj Shetty
d678fc62ab
fix: Clear __unsaved flag after document save (#10082) 2020-04-24 11:25:36 +05:30
Suraj Shetty
9122866c62
fix: Consider __unsaved flag while getting doc as_dict (#10067)
Co-authored-by: Prssanna Desai <prssud@gmail.com>

Co-authored-by: Prssanna Desai <prssud@gmail.com>
2020-04-23 20:38:33 +05:30
mergify[bot]
b18f7866d9
Merge pull request #10046 from rohitwaghchaure/fixed-user-permissions-issue-develop
fix: ignore user permissions not working from the JS side
2020-04-22 08:41:53 +00:00
mergify[bot]
7fb8dac072
Merge pull request #10030 from Thunderbottom/validate-name-data-options
feat: Add name validation to data fieldtype
2020-04-22 07:43:25 +00:00
Rohit Waghchaure
02b3ccc935 fix: ignore user permissions not working from the JS side 2020-04-22 12:49:24 +05:30
Chinmay D. Pai
27b5819e34
fix: skip validation if oldfieldtype is not set to data
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-04-22 11:55:46 +05:30
Chinmay D. Pai
108fa0f42e
fix: sanitize all html input
use beautifulsoup to parse if string contains html and then sanitize the
input html

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-04-21 17:22:44 +05:30
Chinmay D. Pai
1dfa8ccbc4
feat: add name validation to data fieldtype
Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-04-21 15:49:55 +05:30
Aditya Hase
6f1caf101f fix: Check if Event Consumer exists before checking for consumers
the logic for event streaming has been hardcoded into `document.py`

Scenario:
a site (say, v12) backup needs to be restored on a v13 bench and then updated

Solution:
use `bench migrate`; works flawlessly.

However, if this site has an app installed that isn't available on the v13 bench,
then bench migrate fails.

Also, `bench remove-from-installed-apps` fails,
because of the absence of "Event Consumer"
2020-04-20 12:54:30 +05:30
Rushabh Mehta
9f26548b31 fix(minor): update web page test and allow dashboards for custom doctype 2020-04-19 18:01:06 +05:30
Suraj Shetty
6e58c84770
Merge branch 'develop' into delete-mes 2020-04-16 14:11:44 +05:30
Himanshu
5bb489c637
Update frappe/model/delete_doc.py 2020-04-16 10:06:41 +05:30
Prssanna Desai
a5daf8ffa1
fix: check if field is a default field before getting df (#9953) 2020-04-15 19:34:12 +05:30
Shivam Mishra
7651df7bed Merge branch 'develop' of github.com:frappe/frappe into field-strip-html 2020-04-13 14:04:22 +05:30
Kenneth Sequeira
24a8b03639 chore: improve error message on delete 2020-04-08 20:27:38 +05:30
Suraj Shetty
284c70809b fix: Translatable strings with trailing spaces 2020-04-08 14:20:52 +05:30
prssanna
5b5d8031ce fix: use .get() to set fieldtype 2020-04-07 18:11:39 +05:30
mergify[bot]
7a35f70d89
Merge pull request #9833 from marination/change-workflow-status-title
fix: Changed 'Errored' to 'Failed' Transactions in Bulk Workflow Status prompt
2020-04-02 11:56:13 +00:00
gavin
0177c03139
Merge pull request #9784 from gavindsouza/data-options
feat: Validate Data options and Data values
2020-04-01 14:00:48 +05:30
marination
ea52e51766 fix: Change 'Errored' to 'Failed' Transactions in Bulk Workflow Status prompt 2020-04-01 11:55:42 +05:30
Suraj Shetty
391f3da184
Merge pull request #9773 from surajshetty3416/fix-workflow-action-eval
refactor: Commonify transition condition evaluation
2020-03-31 14:24:05 +05:30
Suraj Shetty
ba6a73bd34
Merge branch 'develop' into data-options 2020-03-30 13:06:41 +05:30
Nabin Hait
a5fc3d82dd fix: Get valid columns from meta only if table exists (for doctype action) 2020-03-30 11:59:27 +05:30
Gavin D'souza
32982a34c9 Merge branch 'data-options' into data-options 2020-03-30 11:20:59 +05:30
Gavin D'souza
6c350f6c7b chore: update msgprint title
fix: circular import
2020-03-30 11:19:15 +05:30
Suraj Shetty
0a65266c1e
Merge branch 'develop' into data-options 2020-03-30 10:44:25 +05:30
Gavin D'souza
11aefbd8ed fix: dont validate email if owner and email_data is in STANDARD_USERS 2020-03-30 10:18:30 +05:30
prssanna
523f0a1f57 fix: strip html from fetched fields server side if required 2020-03-27 15:32:11 +05:30
Gavin D'souza
5627981192 fix: safe check of options in docfield 2020-03-25 21:41:48 +05:30
Gavin D'souza
d199d8027a feat: added server validations for phone and email
for fieldtype "Data" and options set to "Email" or "Phone", updating
    documents will trigger data validations for email and phone numbers will be made
2020-03-25 15:29:24 +05:30
Gavin D'souza
80c4167a07 feat: server validations for data field options 2020-03-25 15:23:36 +05:30
Suraj Shetty
5194bcd5a4
Merge branch 'develop' into fix-customized-form 2020-03-25 12:57:39 +05:30
Suraj Shetty
59d146a812 Merge branch 'develop' of https://github.com/frappe/frappe into fix-workflow-action-eval 2020-03-24 13:29:36 +05:30
Suraj Shetty
3b93b2a456 refactor: Commonify transition condition evaluation
- This add safe_globals for transition evaluation in workflow_action
2020-03-24 13:28:30 +05:30
Himanshu Warekar
49532508c6 fix: use set_value instead of db_set 2020-03-23 23:16:36 +05:30
Suraj Shetty
8f8e361766 style: Fix formatting issues 2020-03-21 17:45:39 +05:30
Suraj Shetty
4c8d209c4c fix: Pass Meta instance to updatedb
- Check if Property Setter exists
2020-03-21 15:23:24 +05:30
Suraj Shetty
4d758bf191 fix: Typo 2020-03-21 12:51:02 +05:30
Suraj Shetty
af7e040d1a refactor: Get doc fields directly from meta 2020-03-21 12:30:03 +05:30
Suraj Shetty
b9bb6e6513 fix: Updated value of _seen in db while resetting _seen 2020-03-18 16:30:53 +05:30
Suraj Shetty
b587031d60
Merge branch 'develop' into fix-trigger-doc-events 2020-03-18 15:18:56 +05:30
Deepesh Garg
f46b3d89a9 fix: Pass zero precision as string 2020-03-17 21:20:44 +05:30
Deepesh Garg
57bac6fff8 fix: Avoid unnecessary cint calls 2020-03-17 19:24:03 +05:30
Deepesh Garg
08287fa6f2 feat: 0 precision for currency fields 2020-03-17 09:10:45 +05:30
prssanna
c0f87b8ab5 fix: make bulk workflow status dialog minimizable 2020-03-16 16:00:38 +05:30
Suraj Shetty
bb9401d249
Merge pull request #9512 from scmmishra/setup-wizard-dev
refactor: improvements for setup_wizard
2020-03-16 08:51:40 +05:30
Suraj Shetty
3f26969969
Merge branch 'develop' into fix-trigger-doc-events 2020-03-13 22:51:37 +05:30
Suraj Shetty
be04015ddd
Merge branch 'develop' into no_currency_field_found 2020-03-13 16:08:14 +05:30
Suraj Shetty
6b2dd7ca00
Merge branch 'develop' into setup-wizard-dev 2020-03-12 20:11:14 +05:30