Call to a member function toUrl() on bool in LinkitEntityBrowserForm::insertLink()

Created on 27 May 2025, 11 days ago

Problem/Motivation

The error Call to a member function toUrl() on bool in LinkitEntityBrowserForm::insertLink() occurs when you open entity browser, then click button "Add to selection" without selecting anything. Entity browser is closed, but insertLink is called on false (as no entity selected).

Steps to reproduce

  1. Open entity browser
  2. Don't select anything
  3. Click "Add to selection" button.

Proposed resolution

Before inserting, check if anything was selected.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇵🇱Poland gugalamaciek

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024