Browse Source

Fixed #12851

pull/12874/head
brandonkelly 2 years ago
parent
commit
521a341c50
No known key found for this signature in database GPG Key ID: 5E86D0CED64C7093
  1. 1
      CHANGELOG.md
  2. 2
      src/web/assets/cp/dist/cp.js
  3. 2
      src/web/assets/cp/dist/cp.js.map
  4. 14
      src/web/assets/cp/src/js/AssetIndex.js

1
CHANGELOG.md

@ -5,6 +5,7 @@
- Fixed a bug where it wasn’t possible to select subfolders on the Assets index page. ([#12802](https://github.com/craftcms/cms/issues/12802))
- Fixed a bug where element index search inputs were losing focus when the element listing was updated. ([#12846](https://github.com/craftcms/cms/issues/12846))
- Fixed a bug where the database driver was being referenced as “MySQL” when using MariaDB. ([#12827](https://github.com/craftcms/cms/issues/12827))
- Fixed a bug where users weren’t able to select assets within Assets fields, if they didn’t have full permissions for the volume. ([#12851](https://github.com/craftcms/cms/issues/12851))
- Added `craft\db\Connection::getDriverLabel()`.
## 3.8.0 - 2023-03-08

2
src/web/assets/cp/dist/cp.js
File diff suppressed because it is too large
View File

2
src/web/assets/cp/dist/cp.js.map
File diff suppressed because it is too large
View File

14
src/web/assets/cp/src/js/AssetIndex.js

@ -277,14 +277,18 @@ Craft.AssetIndex = Craft.BaseElementIndex.extend(
if (!this.settings.foldersOnly && this.sourcePath.length) {
const currentFolder = this.sourcePath[this.sourcePath.length - 1];
if (currentFolder.folderId) {
this.uploader.setParams({
folderId: currentFolder.folderId,
});
if (this.uploader) {
this.uploader.setParams({
folderId: currentFolder.folderId,
});
}
// will the user be allowed to move items in this folder?
const canMoveSubItems = !!currentFolder.canMoveSubItems;
this.settings.selectable = canMoveSubItems;
this.settings.multiSelect = canMoveSubItems;
this.settings.selectable =
this.settings.selectable || canMoveSubItems;
this.settings.multiSelect =
this.settings.multiSelect || canMoveSubItems;
}
}

Loading…
Cancel
Save