8000 fix(file): set fieldname to table fieldname by netchampfaris · Pull Request #18965 · frappe/frappe · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix(file): set fieldname to table fieldname #18965

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 22, 2022

Conversation

netchampfaris
Copy link
Contributor

This PR #18880 introduced attached_to_field validation.
When you upload a file in a Attach field inside child table, it is linked to the parent doctype. In this case, the attached_to_field must be the table fieldname for the validation to work properly.

because files are always attached to parent
@netchampfaris netchampfaris requested review from a team and shariquerik and removed request for a team November 21, 2022 14:01
Co-authored-by: Shariq Ansari <30859809+shariquerik@users.noreply.github.com>
@codecov
Copy link
codecov bot commented Nov 21, 2022

Codecov Report

Merging #18965 (45230cf) into develop (74bce62) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #18965      +/-   ##
===========================================
- Coverage    63.49%   63.47%   -0.02%     
===========================================
  Files          750      750              
  Lines        67593    67620      +27     
  Branches      6029     6027       -2     
===========================================
+ Hits         42920    42924       +4     
- Misses       21248    21260      +12     
- Partials      3425     3436      +11     
Flag Coverage Δ
server-ui 31.75% <ø> (+0.06%) ⬆️
ui-tests 50.77% <100.00%> (-0.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@shariquerik shariquerik merged commit 4cd1d3c into frappe:develop Nov 22, 2022
sagarvora added a commit to resilient-tech/frappe that referenced this pull request Nov 30, 2022
ankush pushed a commit that referenced this pull request Nov 30, 2022
* fix: only check for special characters in fieldname

* chore: revert #18965
mergify bot pushed a commit that referenced this pull request Nov 30, 2022
* fix: only check for special characters in fieldname

* chore: revert #18965

(cherry picked from commit 2e2f8e8)
mergify bot pushed a commit that referenced this pull request Nov 30, 2022
* fix: only check for special characters in fieldname

* chore: revert #18965

(cherry picked from commit 2e2f8e8)
mergify bot pushed a commit that referenced this pull request Nov 30, 2022
* fix: only check for special characters in fieldname

* chore: revert #18965

(cherry picked from commit 2e2f8e8)

# Conflicts:
#	frappe/core/doctype/file/file.py
mergify bot pushed a commit that referenced this pull request 10000 Nov 30, 2022
* fix: only check for special characters in fieldname

* chore: revert #18965

(cherry picked from commit 2e2f8e8)

# Conflicts:
#	frappe/core/doctype/file/file.py
ankush pushed a commit that referenced this pull request Nov 30, 2022
* fix: only check for special characters in fieldname

* chore: revert #18965

(cherry picked from commit 2e2f8e8)

Co-authored-by: Sagar Vora <sagar@resilient.tech>
ankush pushed a commit that referenced this pull request Nov 30, 2022
* fix: only check for special characters in fieldname

* chore: revert #18965

(cherry picked from commit 2e2f8e8)

Co-authored-by: Sagar Vora <sagar@resilient.tech>
ankush pushed a commit that referenced this pull request Nov 30, 2022
…#19067)

* fix: only check for special characters in fieldname (#19061)

* fix: only check for special characters in fieldname

* chore: revert #18965

(cherry picked from commit 2e2f8e8)

# Conflicts:
#	frappe/core/doctype/file/file.py

* fix: backport #18909 and misc changes

Co-authored-by: Sagar Vora <sagar@resilient.tech>
frappe-pr-bot pushed a commit that referenced this pull request Nov 30, 2022
## [14.17.1](v14.17.0...v14.17.1) (2022-11-30)

### Bug Fixes

* only check for special characters in fieldname ([#19061](#19061)) ([#19064](#19064)) ([5c5041b](5c5041b)), closes [#18965](#18965)
mergify bot added a commit that referenced this pull request Nov 30, 2022
…#19067)

* fix: only check for special characters in fieldname (#19061)

* fix: only check for special characters in fieldname

* chore: revert #18965

(cherry picked from commit 2e2f8e8)

# Conflicts:
#	frappe/core/doctype/file/file.py

* fix: backport #18909 and misc changes

Co-authored-by: Sagar Vora <sagar@resilient.tech>
(cherry picked from commit f68f161)
ankush pushed a commit that referenced this pull request Dec 1, 2022
…#19067) (#19069)

* fix: only check for special characters in fieldname (#19061)

* fix: only check for special characters in fieldname

* chore: revert #18965

(cherry picked from commit 2e2f8e8)

# Conflicts:
#	frappe/core/doctype/file/file.py

* fix: backport #18909 and misc changes

Co-authored-by: Sagar Vora <sagar@resilient.tech>
(cherry picked from commit f68f161)

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
frappe-pr-bot pushed a commit that referenced this pull request Dec 1, 2022
## [13.45.2](v13.45.1...v13.45.2) (2022-12-01)

### Bug Fixes

* only check for special characters in fieldname (backport [#19061](#19061)) ([#19067](#19067)) ([#19069](#19069)) ([b8e0aa9](b8e0aa9)), closes [#18965](#18965) [#18909](#18909)
frappe-pr-bot pushed a commit that referenced this pull request Dec 6, 2022
# [14.18.0](v14.17.1...v14.18.0) (2022-12-06)

### Bug Fixes

* attribute error on export of reports with additional columns ([#19105](#19105)) ([2b43d5b](2b43d5b))
* check for bad zip files during unzipping in file doctype ([#19058](#19058)) ([#19060](#19060)) ([96c928e](96c928e))
* **db_query:** Disallow usage of certain functions in *_by ([#18981](#18981)) ([#19135](#19135)) ([5376755](5376755))
* **db_query:** Space resilient sanitization (backport [#18996](#18996)) ([#19045](#19045)) ([ab8422f](ab8422f))
* disable signups by default (backport [#19114](#19114)) ([#19118](#19118)) ([3dd2775](3dd2775))
* do not escape undefined txt ([86267e9](86267e9))
* empty search shows `None` ([#19055](#19055)) ([#19057](#19057)) ([1cd0bc2](1cd0bc2))
* ensure correct parenttype when retrieving roles ([af55da9](af55da9))
* give more weight to sequential matches ([#19121](#19121)) ([#19122](#19122)) ([16f642f](16f642f))
* ignore empty/`None` scripts ([#19111](#19111)) ([#19113](#19113)) ([2a96757](2a96757))
* keep actions on right ([7d3e47b](7d3e47b))
* LDAP - check each email in list before creating user ([250f787](250f787))
* only check for special characters in fieldname ([#19061](#19061)) ([#19065](#19065)) ([de0facc](de0facc)), closes [#18965](#18965)
* only System Manager can access Google Drive ([05be9ee](05be9ee))
* Optimize check field type is tab break if the doctype has a workflow ([#18858](#18858)) ([d9ce6c1](d9ce6c1))
* site creation using non-root users ([#19014](#19014)) ([#19043](#19043)) ([844e744](844e744))
* socketio spawn error ([#19070](#19070)) ([#19071](#19071)) ([75a54eb](75a54eb))
* type conversion for read receipt in communication email ([e0f7dd4](e0f7dd4))
* use permtype from passed arguments in has_web_form_permission when applying document permissions ([91c99d2](91c99d2))
* use webform doctype rather than allowing user to pass any doctype ([2be3178](2be3178))
* **UX:** freeze on delete ([#19094](#19094)) ([dd4791a](dd4791a))
* **UX:** Make fetch_from read_only if fetch_is_empty is not set ([#19025](#19025)) ([#19041](#19041)) ([feed227](feed227))
* Widget control on dashboard chart breaks on smaller screens ([d6dedca](d6dedca))

### Features

* **workers:** many small RQ worker features (backport [#18995](#18995)) ([#19046](#19046)) ([37dbada](37dbada))
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport version-14-hotfix backport to version 14
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0