Cannot update parent of comment

Created on 24 May 2013, over 11 years ago
Updated 5 August 2024, 4 months ago

We tried to generate 50 flat comments via devel. Devel created them nested.

We tried to update the pid by using:

foreach ($comment) {
$comment->pid->value = 0;
comment_save($value);
}

That did not work as comments were still threaded.

But the pid in DB table "comment" had changed to 0 ...

There should be a way to reset the parent of a comment.

🐛 Bug report
Status

Active

Version

11.0 🔥

Component
Comment 

Last updated 1 day ago

Created by

🇩🇪Germany Fabianx

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • Needs manual testing

    The change/bugfix cannot be fully demonstrated by automated testing, and thus requires manual testing in a variety of environments.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024