Chaosmeister / EAR

Kanboard - Enable attachment renaming
5 stars 3 forks source link

fix project attachment rename ! #10

Open the-old-ma opened 10 months ago

the-old-ma commented 10 months ago

Due to the lack of project_id args, the project attachement can not be renamed. Need to do the following,

file name: Template/rename/attachment.php, add the following after line 7,

if (isset($file["project_id"]))
{
    $params["project_id"] = $file["project_id"];
}

file name, Template/file/rename.php, add the following after line 7,

if (isset($file["project_id"]))
{
    $params["project_id"] = $file["project_id"];
}