-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Enables tag batch editing (exportable/hidden) #3660
base: 2.4
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks very good, could you change the few points noted above?
throw new NotFoundException('You don\'t have permission to do that.'); | ||
} | ||
$tag_ids = json_decode($this->request->data['Tag']['tag_ids']); | ||
$tags = $this->Tag->find('all', array( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
best to introduce a check here for empty $tag_ids, just in case so it doesn't find every exisitng tag.
app/Controller/TagsController.php
Outdated
'recursive' => -1, | ||
)); | ||
|
||
$hidden = $this->request->data['Tag']['hidden']; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check for empty, user might be coming from the API and not set that field
d00aff3
to
ba42987
Compare
The PR is updated according the comments. |
@iglocska Up, as discussed yesterday :) |
Tested NOT working. You select tags, toggle them in the new UI and nothing happens. Perhaps some things have changed since September 2018. Will take a quick look later on. |
@ancailliau any upates on this PR? |
Sorry, I was abroad. I will check and update asap. Thx for the reminder. |
The exportable and hidden flag can be edited in batch, from the tag list page.
Release Type: Minor