Skip to content
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

[4.1.x][6533] Node selector control should only provide the user with an Edit option for content items that are editable by Studio #3705

Merged
merged 7 commits into from
Feb 20, 2024

Conversation

jvega190
Copy link
Member

@jvega190 jvega190 requested a review from rart as a code owner February 16, 2024 18:04
@jvega190 jvega190 marked this pull request as draft February 16, 2024 20:46
@jvega190 jvega190 marked this pull request as ready for review February 16, 2024 21:05
Comment on lines -105 to -115
var me = this;

var site = CStudioAuthoringContext.site;
var path = this._self.repoPath;
var isUploadOverwrite = true;

for (var i = 0; i < this.properties.length; i++) {
if (this.properties[i].name === 'repoPath') {
path = this.properties[i].value;

path = this.processPathsForMacros(path);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about all this removed code, including parsing the path macros, etc?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The file upload behavior when editing was to upload/override the item (removed code). From the ticket, the behavior should be displaying the editor (if editable). That's what the browse-file datasource does.

@sumerjabri sumerjabri merged commit 37b989b into craftercms:support/4.1.x Feb 20, 2024
1 of 3 checks passed
@jvega190 jvega190 deleted the bugfix/4.1.x/6533 branch April 30, 2024 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants