Problem/Motivation

With "Offer the AI tabs in the Media Library" off, /media/add/image?ai_media=1 still shows the generator, while the Media Library says generation is not offered. AiMediaAddPage::alter() checks only the query.

Steps to reproduce

  1. Turn off the AI tabs setting.
  2. Open /media/add/image?ai_media=1.

Proposed resolution

Check the same setting before switching to Generate mode.

Remaining tasks

  • ✅ File an issue
  • ❌ Addition/Change/Update/Fix
  • ❌ Testing to ensure no regression
  • ➖ Automated unit/functional testing coverage
  • ➖ Developer Documentation support
  • ➖ User Guide Documentation support
  • ➖ UX/UI designer responsibilities
  • ➖ Accessibility and Readability
  • ❌ Reviewed by a human
  • ❌ Code review by maintainers
  • ❌ Full testing and approval
  • ❌ Credit contributors
  • ❌ Review with the product owner
  • ✅ Update Release Notes
  • ✅ Release

User interface changes

  • Before (1.0.x): with the AI tabs off, ?ai_media=1 still opens the generator.
     with the AI tabs off, ?ai_media=1 still opens the generator.
  • After: the media add page shows the upload form.
     the media add page shows the upload form.

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • N/A

AI-Generated: Yes

Issue fork ai_media-3634863

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rajab natshah created an issue. See original summary.

rajab natshah’s picture

Issue summary: View changes
StatusFileSize
new55.87 KB
new57.92 KB

  • rajab natshah committed 845813df on 1.0.x
    fix: #3634863 Ignore ai_media=1 on the media add page when the AI tabs...
rajab natshah’s picture

Issue summary: View changes
Status: Active » Fixed
Issue tags: +ai_media-1.0.0-rc1

✅ Released ai_media-1.0.0-rc1

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.