Account created on 4 November 2006, over 18 years ago
#

Merge Requests

Recent comments

🇨🇦Canada dan3h

Thanks, Damien. Interesting, as always.

🇨🇦Canada dan3h

Line 213 is this:
$entity_title = $ief_form['title']['widget'][0]['value']['#default_value'];

Inspecting that, I found that that $ief_form['title']['widget'] contains [ 0 => null ].

$ief_form['#default_value'] is set to the Node that is being edited. As such, line 213 can be changed to:
$entity_title = $ief_form['#default_value']->get('title')->value;

This is in the 'edit' action. The 'duplicate' action looks to be handled identically, and so I've included the same fix for that.

🇨🇦Canada dan3h

Also my first time here (thanks for the invite, @chrisck).

Damien, it is nice to have an experienced developer like yourself showing us a lot of the behind-the-scenes mechanics that otherwise is difficult to figure out. Thanks for setting this up, and for sharing your time!

🇨🇦Canada dan3h

Current merge request contents as a patch.

Production build 0.71.5 2024