path_delete() creates empty aliases when no path found

Created on 9 February 2022, over 2 years ago
Updated 2 March 2023, over 1 year ago

Problem/Motivation

Unlike core path_delete(), if the criteria to CPS's path_delete() do not match an existing path, it will create a new alias row with source and alias both empty. A simple

if (!$path) {
  return;
}

should handle this.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇺🇸United States mikeryan Murphysboro, IL, USA

Live updates comments and jobs are added and updated live.
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.69.0 2024